in reply to HTML to text
I think you meant s/<.*?>//g ...echo '<pre>foo</pre>' | perl -pe 's/<.*?>//g' # output: <prefoo</pre
and of course (i know, not valid html, but we know it always happens):<select> <option selected>foo</option> <option>bar</option> </select>
Personally, my quick & dirty command-line snippet for this is often:<font color="red">2 >= 1</font>
lynx --dump <file|url>
|
|---|