Mac OS Xのwget

Mac OS Xのwget

デフォルトでは、Mac OS Xにはwgetはありません。

$ wget http://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.9/bin/apache-tomcat-8.5.9.tar.gz
-bash: wget: command not found

Mac OS Xでは、Linuxのwgetに相当するのは+curl -O +です。

$ curl -O http://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.9/bin/apache-tomcat-8.5.9.tar.gz

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 49 9112k   49 4481k    0     0   654k      0  0:00:13  0:00:06  0:00:07  793k

P.S Uppercase alphabet O, not number zero.

Note
Mac OS Xの元のwgetが本当に気に入った場合は、brewでインストールしてみてください

brew install wget