I have the following problem with a search method in Linux: I want to search multiple strings (e.g.
text3) in all files in a folder. I want to find all lines that contain these strings and print the result for each file in only one line.
awk but the result is always spread over multiple lines. Can anybody help me to find a good method for that?
Please note that there can be multiple matches of some of the search strings within a single file, like two times
text3, and i need both of them in output.