Sed question

Dave Tiger dave at tigeri.com
Thu Apr 15 15:25:06 BST 2004


Hi Again,

Sorry to be a bore but I cant get my head around sed and adding text to a
file using it.

I need to find the instance of "domain.com-edit" which is at the end of a
line in a file and add a line of text under it.

Sed -e "domain.com-edit" -e "s/text to add/g" filename 

Dose not work, I got the example of a website.

Any help with this last piece of the puzzle is appreciated.

Thank you in advance

Dave C

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.657 / Virus Database: 422 - Release Date: 13/04/2004
 





More information about the Ukfreebsd mailing list