1
vote
2answers
96 views

A method to find two strings within distance

I have a large text file collection. I'm looking for a way to find two strings that are on the same line (in the same file) in the collection where the distance in characters between those two ...
0
votes
0answers
28 views

How to find the line containing a string in a file? [duplicate]

Possible Duplicate: How to search for a string in a line and return line and line numbers in linux? I have a file myfile. I will search for a string in this file. I want to see the line ...
0
votes
1answer
379 views

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

Possible Duplicate: How to Combine find and grep for a complex search? ( GNU/linux, find, grep ) I have a file containing a text: PADLST20120907:D:05B:UN:IBTA+TK4 17 ...
2
votes
4answers
3k views

How to find files containing two strings together in Linux?

I want to find files containing two strings together, for example the file contains both string1 and string2. I want the full path of files in output. I don't want to see "permission denied" ...
0
votes
3answers
509 views

How to search for a string in a line and return line and line numbers in linux?

I want to search for a string in a file, and the output should give me the line number and line containing that string. How can I do it?
0
votes
1answer
914 views

How to search recursively for a string in linux?

I want to search recursively for files containing a string. I want to search: Files in and under the directory I'm standing in currently A specific directory. I want to see only results. I don't ...
0
votes
1answer
590 views

FINDSTR to search string in files in a specified set of extensions

I want to search for a string in files which end with .asp, .config, and .txt. In other words I want to query asp, web.config, or text files for that particular string. I found that the /G switch ...