grep for content at the end of a file

By rainkinz on Mar 10, 2014, comments 11
find . -type f -name "*.log" -exec /bin/bash -c '(tail -n 500 "$1" | grep -q "not in gzip format") && echo "$1"' _ {} \;
5948
046ebbe2f2bb7ee3d0c6331feb0ef3f5.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest Karcy on Jan 06, 2016 at 7:58 PM

Kudos! What a neat way of thniking about it.

6464
42958c3c1d07f5f2f78e71a3ad609bba.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest ElvaEpo on Dec 25, 2017 at 10:33 PM

апрапрапр

6585
600c0c0acfea1ebff95731c5eb7e4bd4.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest NArBmLhTutVdq on Oct 09, 2019 at 1:59 PM

nQJtHbTdaqhPZ

6586
600c0c0acfea1ebff95731c5eb7e4bd4.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest pYXoiHLVJmDTxnCc on Oct 09, 2019 at 1:59 PM

DHBTAklGoOVx

6589
96e49098c9a6636fb6b37f9dae9af07d.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest YcdOwEkPxF on Oct 11, 2019 at 7:11 AM

hJjtDpeBovSNH

6590
96e49098c9a6636fb6b37f9dae9af07d.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest tCaPGqxUzdgrT on Oct 11, 2019 at 7:12 AM

QRCVTygzGWYtnu

Comment: