How do I find files containing two strings together in Linux?

Posted by alwbtc on Super User See other posts from Super User or by alwbtc
Published on 2012-09-13T07:19:18Z Indexed on 2012/09/13 15:41 UTC
Read the original article Hit count: 188

Filed under:
|
|
|

I have a file containing a text:

PADLST20120907:D:05B:UN:IBTA+TK4 17 JFL01+01'BGM+250+C'RFF+TN:TK4

I want to find this file in Linux, using these two strings: "JFL" and "20120907". As you see above, the file contains both "JFL" and "20120907". What should I write in command line? Stirngs may or may not be in the same line.

I want to see file names with full path in the output. I don't want to see error messages or permission denied warnings. I want to search recursively in the directory I am standing in or I would like to specifiy a path.

regards

© Super User or respective owner

Related posts about linux

Related posts about file