Add GroupFileYearMonthByDateModified

This commit is contained in:
thanhtl 2025-08-29 16:40:54 +07:00
commit c75eabd636

View File

@ -0,0 +1 @@
cd ~/Downloads/"PDF FOLDERS" && find . -maxdepth 1 -type f -not -name ".DS_Store" -print0 | while IFS= read -r -d '' f; do y=$(stat -f "%Sm" -t "%Y" "$f"); m=$(stat -f "%Sm" -t "%m" "$f"); mkdir -p "$y/$m"; mv -- "$f" "$y/$m"/; done