Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2004
    Posts
    37

    Unanswered: searching text in a file in the current directory and all the subdirectories

    I am trying to search "PATTERN" in one of the files from the current directory and all the subdirectories.

    Any help is appreciated..

  2. #2
    Join Date
    Apr 2004
    Location
    Boston, MA
    Posts
    325
    man find

    find . -type f | xargs grep 'PATTERN'
    vlad
    +-----------------------+
    | #include <disclaimer.h> |
    +-----------------------+

  3. #3
    Join Date
    Feb 2004
    Posts
    37
    Thanks Vlad..

    You have been a great help!!

  4. #4
    Join Date
    Feb 2005
    Posts
    10
    opened as new thread
    Last edited by vjkiran; 02-21-05 at 16:36.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •