grep command

Discussion in 'HOWTO-Related Questions' started by praveenvikram24r, Jul 18, 2012.

  1. praveenvikram24r

    praveenvikram24r New Member

    hi,

    how to check with grep command with multiple options any link or any videos is there to check with examples excluding man pages

    Thanks&Regards,

    R.PRAVEEN
     
  2. Mark_NL

    Mark_NL Member

    Code:
    egrep '(string1|string2)' <somefile>
    This will search for lines with "string1" and "string2" in a file.
     

Share This Page