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

Re: [Sheflug] sed Help



On Tue, Aug 27, 2002 at 06:35:08PM -0400, Dave Page wrote:
> I don't talk sed either, but I know what I'm doing with perl...
[snip]
> $ perl -pe 's!^!/mnt/home/aland/!' oldfile.py > newfile.py
> 
> should do the trick nicely.

or if you want the files edited in-place, then

$ perl -i -pe 's!^!/mnt/home/aland/!' file.py

-- 
A walk of a thousand miles begins with a single step...
then continues for another 1,999,999 or so.
___________________________________________________________________

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

  GNU the choice of a complete generation.