[Wolves] Sed help.
Simon C. Burke
simonb at geek-web.co.uk
Fri Jun 20 11:26:23 BST 2008
In the end I replaced the sing quotes with double quotes and escaped them with the good old backslash.
Now I just need to find how to add tot he start.
----- Original Message -----
From: "Simon C. Burke" <simonb at geek-web.co.uk>
To: wolves at mailman.lug.org.uk
Sent: Friday, 20 June, 2008 11:11:20 AM GMT +00:00 GMT Britain, Ireland, Portugal
Subject: [Wolves] Sed help.
I have a text file with some 18000 lines and i need to ammend something to the start and end. For the end I have:
sed 's/$/Add Text to end"/g' myfile
However the text I'm adding is:
' |grep -vir 'http://' >> test.txt
The issue I have is that how do I now escape the pipe and inverted comma's?
Any idea's??
_______________________________________________ Wolves LUG mailing list Homepage: http://www.wolveslug.org.uk/ Mailing list: Wolves at mailman.lug.org.uk Mailing list home: https://mailman.lug.org.uk/mailman/listinfo/wolves
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.lug.org.uk/pipermail/wolves/attachments/20080620/6e03fecb/attachment.html
More information about the Wolves
mailing list