Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shell Script to remove tags from HTML file

Status
Not open for further replies.

ayeung

Technical User
Joined
Apr 28, 2003
Messages
2
Location
AU
I have used wget command to convert a HTML file into a text file. However, the text file has included the HTML tags. How can I remove the tags using shell scripts? Please help... Thanks.
 
cat yourfile.html | sed 's/<[^>]*>//'g > newFile.txt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top