[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep patch

From: Paul Eggert
Subject: Re: grep patch
Date: Thu, 17 Jan 2002 13:11:06 -0800 (PST)

> Date: Thu, 17 Jan 2002 22:22:08 +0300
> From: Stepan Koltsov <address@hidden>

> grep --fake-filename=$fn -H pattern
> is simpler (easier to read) then
> grep -H pattern | sed 's,(ÓÔÁÎÄÁÒÔÎÙÊ ××ÏÄ)',$fn,

But it's not simpler than

grep -h pattern | sed "s,^,$fn:,"

> BTW I don't understand, for what purposes option --recursive presents
> in grep, it is less handy option, then --fake-filename=, because I can
> write
> find * -type f | xargs grep -H ...

grep -r is used often enough that it's reasonable to have as an
option, both for convenience and performance.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]