The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 11-23-2007
radoulov's Avatar
radoulov radoulov is offline Forum Staff  
addict
  
 

Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,794
Code:
sed -n '/^$/!{s/<[^>]*>//g;p;}' filename
Or, with a bit different output:

Code:
lynx --dump filename
(the file must have htm[l] extension)

Or use html2text

Last edited by radoulov; 11-23-2007 at 12:17 PM..