Written by:David Aldridge
8/15/2012 3:33 PM 

The following are some useful sed commands:

Remove HTML formatting from a file:
sed -e ‘s/<[^>]*>//g’ page.html

Remove C Style comments from a file:
sed -e 's/\/\*[^\*\/]*\*\///g' prog.c

Remove Mysqldump style comments from a file:
sed -e '/--*/d' tables.sql


Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Security Code
Enter the code shown above in the box below
Add Comment  Cancel 
You must be logged in and have permission to create or edit a blog.