[Gllug] probs with sed

Tethys tet at accucard.com
Tue Jul 1 14:48:03 UTC 2003


"Paul McCourt" writes:

>I'm getting a little somewhere with sed e.g. s/$/test/
>puts it a the start but I can't work out how to put it at the end!

That should put it at the end. Use ^ to put it at the start:

	sed -e 's/^/prefix/' -e 's/$/suffix/'

Tet

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list