[ale] find/replace ever instance of X with Y in *

Pete Hardie pete.hardie at gmail.com
Mon Jan 22 18:34:35 EST 2007


On 1/22/07, Jim Popovitch <jimpop at yahoo.com> wrote:
> I periodically need a utility to change multiple instances of X with Y
> in files Z.  I know that combinations of awk/sed/grep can do some of
> this, but is there a way with one tool to do this?

If it's a simple Y:X substitution, without things like "Xa" won't be
changed but "X" will,
then sed -e "s/X/Y/g" <shell expressiong firl all files Z>
 should work.

>
> Tia,
>
> -Jim P.
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
>
>


-- 
Pete Hardie
--------
Better Living Through Bitmaps



More information about the Ale mailing list