Many a time we want to download something and do something ie unzip untar etc. generally we are not interested in the original download.
wget -q -O - <URL> | <do whatever is necessary>
ie untarring example
wget -q -O - "http://localhost/docs/somedoc.tar.gz" | tar xzf -

wget -q -O - <URL> | <do whatever is necessary>
ie untarring example
wget -q -O - "http://localhost/docs/somedoc.tar.gz" | tar xzf -

No comments:
Post a Comment