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

  • 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


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

to do it without creating a file: wget -qO- | cat