[Nottingham] Help... How to grep four words in a file appearing in any permutation?

Richard Parsons rp at redwoodlegal.co.uk
Mon Nov 23 16:16:54 UTC 2015


Great minds...

On Mon, Nov 23, 2015 at 4:15 PM, Jason Irwin <jasonirwin73 at gmail.com> wrote:

> On 23/11/15 16:09, Richard Parsons wrote:
> > grep -l alpha * | xargs grep -l beta | xargs grep -l charlie | xargs
> > grep -l delta
>
> HAH! I was just typing the exact same thing. Yes, I think that should work.
>
> --
> ╔═════════════╦══════════════════════════════════════════╗
> ║ Jason Irwin ║ OpenPGP (GPG/PGP) Public Key: 0xD0C592B1 ║
> ║             ║ Import from hkp://pgp.mit.edu> ╚═════════════╩══════════════════════════════════════════╝
>
> _______________________________________________
> Nottingham mailing list
> Nottingham at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/nottingham
>



-- 
Redwood Legal
rp at redwoodlegal.co.uk
Office: 02030 956010
Mobile: 07544 822706
138-140 Southwark Street, London, SE1 0SW

This firm is authorised and regulated by the Solicitors Regulation
Authority (SRA ID 427552)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/nottingham/attachments/20151123/d4d18fa5/attachment.html>


More information about the Nottingham mailing list