[NBLUG/talk] command line search/replace

Barry Stump barry.stump at gmail.com
Thu Nov 2 17:25:00 PST 2006


For the record, this worked for me:

find . -type f -exec grep -l 'this' '{}' ';' | xargs -l1 vim -c
'%s/this/that/gc'

-Barry

On 11/2/06, Ross Thomas <boscorama at fastmail.us> wrote:
> Ooops!
>
> On Thu, 02 Nov 2006 16:50:13 -0800, "Ross Thomas"
> <boscorama at fastmail.us> said:
> >
> >    cat file_list |
> >       while [read line] ; do
>
> That should read:
>       cat file_list |
>           while read line ; do
>
> Sorry for the confusion.
>
> Ross.
>
> --
> http://www.fastmail.fm - Faster than the air-speed velocity of an
>                           unladen european swallow
>
>
> _______________________________________________
> talk mailing list
> talk at nblug.org
> http://nblug.org/cgi-bin/mailman/listinfo/talk
>



More information about the talk mailing list