[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] find/replace ever instance of X with Y in *
- Subject: [ale] find/replace ever instance of X with Y in *
- From: pete.hardie at gmail.com (Pete Hardie)
- Date: Mon, 22 Jan 2007 18:34:35 -0500
- In-reply-to: <1169508538.16133.3.camel@localhost>
- References: <1169508538.16133.3.camel@localhost>
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