Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.linux.ubuntu    |    I preferred Xubuntu, seemed a bit faster    |    134,474 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 134,241 of 134,474    |
|    Lem Novantotto to All    |
|    Re: how to grep for pattern1 AND pattern    |
|    13 Mar 25 20:44:12    |
      From: Lem@none.invalid              Il Thu, 13 Mar 2025 12:56:42 -0700, Adam ha scritto:              > I'm looking for AND (not OR) operator. So, both patterns must be in the       > file (not line) or FALSE is returned.              $ ( grep -l pattern1 file | xargs grep -l pattern2 ) || false              You can do it better. Read the manual of the involved commands, if you       like.       --       Bye, Lem        Talis erit dies qualem egeris              --- SoupGate-DOS v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca