[PLUG] awk and sed vs php

M. Edward (Ed) Borasky znmeb at cesmail.net
Mon Nov 7 06:08:45 UTC 2005


I don't know much about PHP, but I gave up awk and sed almost a decade 
ago for Perl 4. I still occasionally use sed, but I haven't written an 
awk script since about 1994.

Wil Cooley wrote:

>On Sat, 2005-11-05 at 07:52 -0600, David Fleck wrote:
>
>  
>
>>Pretty much.  In general, it would look like
>>
>>sed -e 's/regex_for_old_string/new_string/' $i > tmp && mv tmp $i
>>    
>>
>
>You could also use the -i and do away with the temp file altogether.
>
>Wil
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>PLUG mailing list
>PLUG at lists.pdxlinux.org
>http://lists.pdxlinux.org/mailman/listinfo/plug
>  
>

-- 
M. Edward (Ed) Borasky

http://linuxcapacityplanning.com




More information about the PLUG mailing list