<div dir="ltr"><div>The four words have to be next to each other separated by spaces?<br><br></div>Do you want the grep to flag the matching file, or is the specific line important?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 23, 2015 at 3:33 PM, Martin <span dir="ltr"><<a href="mailto:martin@ml1.co.uk" target="_blank">martin@ml1.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Folks,<br>
<br>
One of those clever one-liners please?<br>
<br>
<br>
How to grep for four words in a file that can appear in any permutation?<br>
<br>
?<br>
<br>
Cheers,<br>
Martin<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
- ╔═══════════════════╦══════════════════════════════════════════╗<br>
- ║   Martin Lomas    ║ OpenPGP (GPG/PGP) Public Key: 0xCEE1D3B7 ║<br>
- ║ martin@ ml1 co uk ║ Import from   hkp://<a href="http://subkeys.pgp.net" rel="noreferrer" target="_blank">subkeys.pgp.net</a>   or ║<br>
- ║ ----------------- ║ http:// ml1 .co .uk/martin_ml1_co_uk.gpg ║<br>
- ╚═══════════════════╩══════════════════════════════════════════╝<br>
<br>
_______________________________________________<br>
Nottingham mailing list<br>
<a href="mailto:Nottingham@mailman.lug.org.uk">Nottingham@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/nottingham" rel="noreferrer" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/nottingham</a></font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-size:small"><font color="#000000">Redwood Legal</font></div><div style="font-size:small"><font color="#000000"><a href="mailto:rp@redwoodlegal.co.uk" target="_blank">rp@redwoodlegal.co.uk</a><br></font></div><div style="font-size:small"><font color="#000000">Office: 02030 956010</font></div><div style="font-size:small"><font color="#000000">Mobile: 07544 822706<br></font></div><div style="font-size:small"><font color="#000000">138-140 Southwark Street, London, SE1 0SW<br></font></div><div style="font-size:small"><font color="#000000"><br></font></div><div style="font-size:small"><font color="#000000">This firm is authorised and regulated by the Solicitors Regulation Authority (SRA ID 427552)</font><br></div></div></div></div></div></div></div>
</div>