[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Grep Options



While using grep, what is the best way to search for two subjects
within the same line instead of the following?

cat <filename> | grep <subject_one> | grep <subject_two>

This is not an "or" search with "-e", but an "and" search.

Note: Detailed Document(s) and Sample(s) are more than welcome.
      When you reply to this message, please include
      the mailing list and my address.

*********************************************************************
Signed,
SoloCDM



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]