[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] sed Help



On Tue, Aug 27, 2002 at 11:24:43PM +0100, Dawson, Alan wrote:
> I have a text file which needs a common string appending to the beginning of
> every new line.  I'm sure sed would be my friend here but I'm afraid i dont
> speak the same language - yet -.

One way to do it:

cat oldfile.py | sed s,^,/whatever/,

-- 
Chris
http://crispygoth.livejournal.com/
___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.