<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>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></body></html>