[oclug] ...and speaking of awk...

Francis Pinteric linuxdoctor at yahoo.com
Thu Feb 22 15:49:59 EST 2001


--- Dave O'Neill <doneill at linuxcare.com> wrote:
> 
> Well, I've long since forgotten awk and sed (time for a Francis
> rant?),
> but you can do this with a Perl oneliner:
> 
> perl -pi.bak -e 's!<a href="http://some.url/([^"]*)">!<a
> href="./$1">!g' *.html
> 

Rant indeed. Overkill, bring on the bloat, make sure you have enough
memory, this thing is so slow I thought you were running windows.

Which begs the question: why have you "long since forgotten" awk and
sed?

>>>--fja->

=====
There are no stupid questions, but there are a LOT of inquisitive idiots.

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/



More information about the OCLUG mailing list