<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>In the end I replaced the sing quotes with double quotes and escaped them with the good old backslash.<br>Now I just need to find how to add tot he start.<br><br><br>----- Original Message -----<br>From: "Simon C. Burke" &lt;simonb@geek-web.co.uk&gt;<br>To: wolves@mailman.lug.org.uk<br>Sent: Friday, 20 June, 2008 11:11:20 AM GMT +00:00 GMT Britain, Ireland, Portugal<br>Subject: [Wolves] Sed help.<br><br><style>p { margin: 0; }</style><div style="font-family: Times New Roman; font-size: 12pt; color: rgb(0, 0, 0);">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:<br><br>sed 's/$/Add Text to end"/g' myfile <br><br>However the text I'm adding is:<br><br>' |grep -vir 'http://' &gt;&gt; test.txt<br><br><br>The issue I have is that how do I now escape the&nbsp; pipe and inverted comma's?<br><br>Any idea's??<br></div><br>_______________________________________________
Wolves LUG mailing list
Homepage: http://www.wolveslug.org.uk/
Mailing list: Wolves@mailman.lug.org.uk
Mailing list home: https://mailman.lug.org.uk/mailman/listinfo/wolves</div></body></html>