Tuesday, May 15, 2018

Search for a string in txt file in all sub-directories

find dir/ -name *.txt -type f -exec grep -H 'string' {} +