Home
About
Top Tens
Blogs
Add Recipe
CATEGORIES
UNIX
FreeBSD
Linux
Solaris
UNIX shell
UNIX software
Apple Mac
Computer programming
Database
Entertainment
Green computing
Internet
Networking
Technology reviews
Windows
remove html tags from a file
Contributed by
Michilimackinac
January 13, 2004
Tagged:
UNIX
This a useful one-liner using sed to remove all the html tags from a file
sed -e ’s/<[^>]*>//g’ foo.html
Previous recipe
|
Next recipe
|
Anonymous
looks like this command removes all tags enclosed in open paren closed paren
Anonymous
thanks a lot, you save my day ^_^
Christoffer
Thank You.. You also saved my day.
Anonymous
Awesome! Thanks heaps for sharing
Tex
Thanks a lot!!!!!!!!!!!!!!
blog comments powered by
Disqus
POPULAR RECIPES
Copy and paste text with vi or vim
Show line numbers in vi or vim
Create a symbolic link in UNIX
Remove ^M characters at end of lines in vi
Recursive grep
Create a TAR archive of a directory
Decompress and extract a tgz or tar.gz archive in a single step
Find a file by name in UNIX/Solaris/Linux
View our Top Tens
TECH-RECIPES BLOGS
its my first time: my google nexus one / android experience (part 1)
Nikon (Nikkor) 55-200mm lens repair
How to Download YouTube Videos onto your Nexus One Device
PS3 Slim Quickie: Harddrive Upgrade in less than 5 mins (video)
Facebook My Town Cheat: Send Multiple Free Gifts to Your Neighbors
gadget pr0n: my Google Nexus One and super cheap data...
PS3 and PSP remoteplay styled (video)
my wii and emulators in action (nes, snes, genesis, n64)