Thursday, September 13, 2018

Search in gz and plain files recursively

reset;\
find -name \*.log -print0 | xargs -0 grep "delete from"; \
find -name \*.gz -print0 | xargs -0 zgrep "delete from";

No comments:

Post a Comment

What's the quickest way to find duplicated files?

find . ! -empty -type f -exec md5sum {} + | sort | uniq -w32 -dD fdupes -r / linux_czkawka_gui.AppImage