DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Use Wget To Display HTML

04.09.2005
| 17443 views |
  • submit to reddit
        This will output the data from a URL to a file and then display the data in that file.

wget -q -O file "url"; cat file
    

Comments

Snippets Manager replied on Mon, 2008/09/22 - 6:34pm

to do it without creating a file: wget -qO- http://google.com | cat