[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
OK, I've gone with sed but I have one problem : cat about.shtml | sed -e '/<head>/a\ <!--#include virtual=\"includes\/google.html\" -->' gives me my desired output, printed in the terminal (i.e. prints the entire about.shtml file, but with <!--include... added to it in the appropriate place). but if I change that to: cat about.shtml | sed -e '/<head>/a\ <!--#include virtual=\"includes\/google.html\" -->' > about.shtml trying to write the output to about.shtml, I get a blank file - what am I doing wrong?! Jon -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html