Grep keep (output) entire .txt file if one line contains string – unix.stackexchange.com

I know that grep -rhI "# Active" > out.txt will output any line containing # Active within the searched directory but I want the entire .txt file contents, so example example.txt Line1 Line2 ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Grep keep (output) entire .txt file if one line contains string – unix.stackexchange.com"