For example:
wget http://somesite.com/TheFile.jpeg
downloading: TheFile.tar.gz ...
--09:30:42-- http://somesite.com/TheFile.jpeg
Use using these flags:
wget -q --show-progress --progress=bar:force 2>&1
The option --show-progress
, as pointed out by others, is the best option, but it is available only since GNU wget 1.16, see Noteworthy changes in wget 1.16.
To be safe, we can first check if --show-progress
is supported:
# set progress option accordingly
wget --help | grep -q '\--show-progress' && \
_PROGRESS_OPT="-q --show-progress" || _PROGRESS_OPT=""
wget $_PROGRESS_OPT ...
Maybe it's time to consider just using curl
.
Use:
wget http://somesite.com/TheFile.jpeg -q --show-progress
-q
: Turn off wget
's output
--show-progress
: Force wget
to display the progress bar no matter what its verbosity level is set to