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

4 comments