[PLUG] awk and sed vs php
Wil Cooley
wcooley at nakedape.cc
Mon Nov 7 05:16:58 UTC 2005
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
--
Wil Cooley wcooley at nakedape.cc
Naked Ape Consulting http://nakedape.cc
* * * * Linux, UNIX, Networking and Security Solutions * * * *
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.pdxlinux.org/pipermail/plug/attachments/20051106/b92df45a/attachment.asc>
More information about the PLUG
mailing list