Notes to self: Find all files NOT containing text
Handy script to find all files in a given subfolder that do NOT contain a certain text line. Sorted for easy reading:
find ./PATH/TO/FOLDER -type f -size +1c ! -exec grep -q ‘SEARCH TEXT’ {} \; -print | sort

http”//www.udtek.com
Just what I needed! Thanks for saving me a few hours.
Glad it helped.
doesn’t work for me at all. no matter what i put in the search string, every file in the path comes back.