Home
About
Top Tens
Blogs
Add Recipe
CATEGORIES
UNIX
FreeBSD
Linux
Solaris
UNIX shell
UNIX software
Green computing
Apple Mac
Computer programming
Database
Entertainment
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
you're doing it wrong! (rant)
thoughts of a launch psp owner (post 4 1/2 years)
Facebook FishVille Cheat: Send Multiple Free Gifts to Your Neighbors
post release: Windows 7, homegroups and me
fall 2009 and some geek thoughts, reflections
Facebook Cafe World Cheat: Close Your Cafe When You are Away for Long Periods of Time (to preserve your Buzz Rating)
Facebook Cafe World Cheat: Serve Your Customers Instantly
Facebook Cafe World Cheat: Send Multiple Free Gifts to Your Neighbors