Ben
September 4th, 2007, 23:05
Earlier I was attempting to learn how to use SED, and I came across a problem.
OK, say I was trying to edit blahblah.html, and change all the <blockquote>'s to <tt>'s. Here's the command I tried ...
sed -e 's/blockquote/tt' blahblah.html > blahblah2.html
Yet it did not work. It just spat out the original.
I tried some variations:
sed -e '/*/ s/blockquote/tt /*/' blahblah.html > blahblah2.html
But sed just threw empty beer bottles at me.
Help?
OK, say I was trying to edit blahblah.html, and change all the <blockquote>'s to <tt>'s. Here's the command I tried ...
sed -e 's/blockquote/tt' blahblah.html > blahblah2.html
Yet it did not work. It just spat out the original.
I tried some variations:
sed -e '/*/ s/blockquote/tt /*/' blahblah.html > blahblah2.html
But sed just threw empty beer bottles at me.
Help?