Find the answer to your Linux question:
Results 1 to 3 of 3
Hi all, how can I find text files, where a sertain sentence occurs? Thanks beforehand, regards, sipungora...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    2

    Question Search for text file(s)


    Hi all,

    how can I find text files, where a sertain sentence occurs?

    Thanks beforehand,
    regards, sipungora

  2. #2
    Linux Newbie danielsmw's Avatar
    Join Date
    Nov 2006
    Location
    Clemson, SC / Charleston, SC
    Posts
    110
    You can use the grep command as follows:
    Code:
    grep -r "string to find" /directory/to/look/in
    Cheers,
    danielsmw
    Registered Linux User: #479567
    Asking a question? Read this page first.
    Now... sudo make me a sandwich.
    ratiocinativeroot.blogspot.com

  3. #3
    Just Joined!
    Join Date
    Sep 2008
    Posts
    2
    Thank you, danielsmw, very much.

    Would you like to say me how can I search in hide files?

    Thanks beforehand,
    Regards, buters

Posting Permissions

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