bash script to find pattern in text file and return entire line

I need to make a bash script which loops through a bunch of .txt files in a directory, then searches each .txt for a string, and returns the entire line that string appears on

I know how to look through all the .txt files in the directory,

I just need to be pointed in the right direction for searching the file itself, and returning a line based on a match in that line

6
задан Jim McAdams 27 March 2015 в 19:06
поделиться