Skip to content

find

Search for the string "dnssec" in files, directories, and subdirectories, including gzipped files, and only in files that have been modified in the last 2 days

find /var/log -type f -mtime -2 \( -iname '*.gz' -exec zgrep -H 'dnssec' {} \; -o -exec grep -H 'dnssec' {} \; \)