Specifically, I want to take remove style
sheets defined in the head of a html document,
and replace it with a link to an external style
sheet.
I've been discovering sed, but it multiline
commands are at the moment beyond my comprehension.
There is a lot of useful information on sed on
the net, but it seems to be oriented towards
operating on single lines. I need a solution
that removes a block, and replaces it with a line.
Can anyone help?
Thank you
Try this site http://www.cornerstonemag.com/sed/
Would placing sed commands into a scriptfile help?
>$ sed -f scriptfile inputfile
Or ?
>$ sed -e "/^css/,/^\/css/c this block of text" inputfile