Loading ...
Sorry, an error occurred while loading the content.

Re: recursive grep (RE: [vim] engspchk v1.25 (now v1.27))

Expand Messages
  • raf
    ... the echo {} ; runs slower here than just having find print the file names. what s the point? if find doesn t print by itself, isn t -print faster?
    Message 1 of 3 , Jan 29, 2001
    • 0 Attachment
      Dr. Charles E. Campbell wrote:

      > Thus saith Jean Jordaan:
      > > I'd just do something like:
      > >
      > > $ find . | xargs agrep "matchstring"
      > >
      > > Is this bad? Is there a better way?
      >
      > find . -exec "echo" "{}" ";" | xargs agrep "matchstring"

      the "echo" "{}" ";" runs slower here than just having
      find print the file names. what's the point? if find
      doesn't print by itself, isn't "-print" faster?
      another speed up would be to use -n with xargs
      so there are fewer agrep processes.

      raf
    Your message has been successfully submitted and would be delivered to recipients shortly.