Remove HTML Tags from a File

Posted January 13, 2004 by Michilimackinac in UNIX

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


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

The Conversation

Follow the reactions below and share your own thoughts.