The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I need to search for a specific word / line in every file

Discussion in 'General Discussion' started by I-Web, May 6, 2004.

  1. I-Web

    I-Web Well-Known Member

    Joined:
    Jul 7, 2003
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    I found this on WHT

    find -type f -name '*.*' \
    -exec grep -s searchstringhere {} \; -print

    but it doesnt work.... i know because i created a test file, put my search string into it and tested to see if it would find it...


    Anyone????

    Thanks
     
Loading...

Share This Page