[Gllug] probs with sed

ben f ben_m_f at yahoo.co.uk
Tue Jul 1 14:54:37 UTC 2003


 --- Paul McCourt <paul at fiddlersglen.com> wrote: > 
> Hi,

> 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!

You mean this puts it at the end but you can't put it
at the start, right?

use: sed -e 's/^/test/' -e 's/$/test/'

enjoy!

Ben

________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/

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




More information about the GLLUG mailing list