[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
> 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?! You have to output to another name. Somebody correct me if I'm wrong, but I suspect it's because bash clears the file and starts directing output to it before the programs are run. Your command would produce no output if the input file is empty and that's effectively what you're giving it. -- 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