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.

Looking for file with the word "sendmail -bS"

Discussion in 'E-mail Discussions' started by rix, Dec 17, 2003.

  1. rix

    rix Well-Known Member

    Joined:
    May 1, 2003
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    Hello,
    I know theres a command to find a string from the haystack but im not sure how to. Currently i got a hang to these command
    Code:
    find /home -type f -exec grep -n 'sendmail -bS' {} \;
    
    however it didn't show me which file but only the line where it found the string. Is there a way for me to know which file contains the string?
     
  2. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    Try this one

    grep -r "sendmail -bS" /home/*
     
  3. rix

    rix Well-Known Member

    Joined:
    May 1, 2003
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    sorry for the late reply. It works anyway, thanks alot :D
     
Loading...

Share This Page