wget download to directory code example
Example: wget to particular directory
wget -O /var/cache/foobar/stackexchange-site-list.txt http://url.to/stackexchange-site-list.txt
wget -O /var/cache/foobar/stackexchange-site-list.txt http://url.to/stackexchange-site-list.txt