View Single Post

  #3 (permalink)  
Old 05-03-2008, 02:30 AM
meowing meowing is offline
Junior Member
User
 
Join Date: Feb 2007
Posts: 19
Rep Power: 0
meowing
Default

SED, that's a great hint!
I found a nice script to strip html comments too;
http://sed.sourceforge.net/grabbag/s...l_comments.sed
but I'm not really sure how to apply that.

How do I make it work on an entire web document root for example?
(assuming I have a backup of the entire dir)
If you have an example shell command for this, that would really help me.
Also, wouldn't it be great to combine this with the above mentioned idea?
( sed '/^$/d;s/^[ \t]*//;s/[ \t]*$//' and maybe even more)

Thanks in advance if anybody finds the time to respond,
meanwhile I'll try some more sed docs to see if I can get
this idea from the ground.
Reply With Quote