Я знаю, что мне нужно использовать grep.Но я ищу что-то вроде этого:
grep !(line that contains !) + [some other string which identifies the file it's comming from, could be a number for instance] > outputfile