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

Martin martin at ml1.co.uk
Mon Nov 23 16:21:47 UTC 2015


xargs...!

Very clever, thanks.


Cheers,
Martin


On 23/11/15 16:16, Richard Parsons wrote:
> Great minds...
> 
> On Mon, Nov 23, 2015 at 4:15 PM, Jason Irwin <jasonirwin73 at gmail.com
> <mailto: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 <http://pgp.mit.edu> 
>>     ╚═════════════╩══════════════════════════════════════════╝
> 
>     _______________________________________________
>     Nottingham mailing list
>     Nottingham at mailman.lug.org.uk <mailto:Nottingham at mailman.lug.org.uk>
>     https://mailman.lug.org.uk/mailman/listinfo/nottingham
> 
> 
> 
> 
> -- 
> Redwood Legal
> rp at redwoodlegal.co.uk <mailto: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)
> 
> 
> _______________________________________________
> Nottingham mailing list
> Nottingham at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/nottingham


-- 
- ╔═══════════════════╦══════════════════════════════════════════╗
- ║   Martin Lomas    ║ OpenPGP (GPG/PGP) Public Key: 0xCEE1D3B7 ║
- ║ martin@ ml1 co uk ║ Import from   hkp://subkeys.pgp.net   or ║
- ║ ----------------- ║ http:// ml1 .co .uk/martin_ml1_co_uk.gpg ║
- ╚═══════════════════╩══════════════════════════════════════════╝



More information about the Nottingham mailing list