how can i save .htm to .txt file in Unix

April 28, 2011 at 05:08:56
Specs: Windows XP
i need to save an htm file as txt file in unix. Actually im using cygwin where i cant do that.

The thing like i can save a html or htm file in txt file clicking save as in windows. so that without htm table i can i can get all data in txt format if i save htm file to txt file. but in unix same thing i cant do. plz help me.


See More: how can i save .htm to .txt file in Unix

Report •

#1
April 29, 2011 at 20:37:46
perl -pe 's/<[^>]*>//g' file.html > file.txt

I tested that script on FreeBSD.

It uses perl. If you want to use different scripting, search google for strip html tags unix.

How do you know when a politician is lying? His mouth is moving.


Report •
Related Solutions


Ask Question