Delete .log files older than 7 days and bigger than 1 MiB with one find command, and the traps on the way: permission denied on files you can write, -mtime and -size rounding, and why -delete goes last.
Badges
Badges come from GitHub once the author claims this feed.
Recent posts
every link opens the author’s post-
find -mtime +7 -size +1M -delete: clearing old, oversized logs
-
systemd status=203/EXEC: The Service That Never Started
Duration: 235us and status=203/EXEC means your service never ran a single line.
-
Git: Find the First Bad Commit With a One-Liner
A test fails and you have no idea when it broke.
-
Seeing inside Bash scripts with calltree
calltree reads a Bash project and prints which function calls which, in run order, with file:line and the control flow around every call.
-
Reading Greek receipts from a photo: AADE QR codes first, Tesseract second
Every Greek receipt has carried a QR code since November 2023, and it holds the exact date and total.