One-line global string replace in all files with sed (or awk?)
markzero
mark at darklogik.org
Thu Jan 27 22:36:36 PST 2005
> Hmm ... maybe I found it:
>
> grep -R -l "xxx" /www/htdocs | xargs sed -i '' -e 's/xxx/yyy/g'
>
> Does that look okay? Seems to work in my test.
>
> --
> Anthony
>
Looks good!
Mark
--
PGP: http://www.darklogik.org/pub/pgp/pgp.txt
B776 43DC 8A5D EAF9 2126 9A67 A7DA 390F DEFF 9DD1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 825 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050128/0ba4de03/attachment.bin
More information about the freebsd-questions
mailing list