Re: Recursion with grep?

From: Francisco J Reyes (fran_at_natserv.net)
Date: 11/14/03

  • Next message: stan: "Re: Drive errors?"
    Date: Thu, 13 Nov 2003 22:42:18 -0500 (EST)
    To: Viktor Lazlo <viktorlazlo@telus.net>
    
    

    On Thu, 13 Nov 2003, Viktor Lazlo wrote:

    > If there are a large number of files this will call grep numerous
    > times--it would be more efficient to pass to xargs so grep is only called
    > a few times:
    >
    > find . -type f -print | xargs grep options string

    Although in my case the files are few I will keep this sample handy if I
    ever need to work on large number of files.

    I think I am going to research what would it take for someone to fix grep
    and pay them.

    How do think we would want grep to work?

    Do we want something like:
    grep -r <string> *.c

    If I get someone to change grep anyone care to comment on whether it would
    be difficult to get this imported into the tree?

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: stan: "Re: Drive errors?"

    Relevant Pages

    • Re: Tool for document management
      ... to search my archives of material I have written in the past, ... inability to make use of grep in searching my archives. ... file system for document storage, when, as the calendar rolled over ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: OpenGL glxgears demo program
      ... cat /var/log/Xorg.0.log | grep EE ... Modify settings or unsubscribe at: ...
      (Ubuntu)
    • Re: Contacts printing
      ... Grep is to search for string within files, how can it do sorting jobs? ... I want to cat all those file into one file and then sort the above entries, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: Browsing offline filesystems
      ... Nuno Magalhães wrote: ... To search, use less or grep. ... I am not aware of some caching filesystem, which only "caches" the directory structure, without the files content. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: What is this in my syslog????????
      ... I will learn how to use grep and see what I can come up with. ... on which I never removed the XP windows system from ... Etch went stable. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)