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

Re: [Sheflug] sed Help



On Tue, 2002-08-27 at 23:35, Dave Page wrote:
> $ perl -pe 's!^!/mnt/home/aland/!' oldfile.py > newfile.py
> 
> should do the trick nicely.

Pah. Waste of a regex.

perl -e'print"/mnt/home/aland/$_"foreach(<>);'<oldfile.py>newfile.py

Much quicker :)

BTW, I'm back everyone. And I've just been to see Damian Conway speak at
London.pm about "Life, the Universe, and Everything" :P

Cheers,

Alex.

Attachment: signature.asc
Description: This is a digitally signed message part