[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] sed Help
On Wed, Aug 28, 2002 at 09:30:48AM +0100, Chris J wrote:
> And now for something completely different.
>
> How to do it with awk, seeing as sed and perl have now been beaten to death.
>
> awk '{ print "whatever/"$0 }' infile > outfile
I think that qualifies for useless use of awk :P
If we're talking arcana, then:
yes '/mnt/home/aland' | paste -f -d'/' - oldfile.py > newfile.py
Muhahah :) I bet that one's the speed champ!
Cheers,
Alex.
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.