Monday, May 6, 2013

Using CURL as WGET Replacement in MAC

I was trying to download file in my MAC using "wget" but I found that "wget" is not available in MAC by default. After searching for few min I found a easy solution. CURL can be used to accomplish the same task. 

CURL Command is 
"curl -O http://apache.spinellicreations.com/lucene/solr/3.6.2/apache-solr-3.6.2.tgz"

To create an alias called `wget` that will simply run the command curl -O I ran the following command in my MAC terminal.


echo 'alias wget="curl -O"' >> ~/.bash_profile

Now when I run "wget",  it is actually executing curl -O to download the file.

"wget http://apache.spinellicreations.com/lucene/solr/3.6.2/apache-solr-3.6.2.tgz"

Hope this article is helpful for you...

No comments:

Post a Comment