remove html tags from a file

Contributor Icon Contributed by Michilimackinac  
Tag Icon Tagged: UNIX  

This a useful one-liner using sed to remove all the html tags from a file


sed -e ’s/<[^>]*>//g’ foo.html

 

3 Comments -


  1. Christoffer said on October 14, 2008

    Thank You.. You also saved my day.

  2. Anonymous said on November 20, 2008

    Awesome! Thanks heaps for sharing

  3. Tex said on November 26, 2008

    Thanks a lot!!!!!!!!!!!!!!

 

RSS feed for comments on this post. TrackBack URL

Leave a comment -