commit c75eabd636d86eb76eb573072895fd9dc32e04d0 Author: thanhtl Date: Fri Aug 29 16:40:54 2025 +0700 Add GroupFileYearMonthByDateModified diff --git a/GroupFileYearMonthByDateModified b/GroupFileYearMonthByDateModified new file mode 100644 index 0000000..cd02503 --- /dev/null +++ b/GroupFileYearMonthByDateModified @@ -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 \ No newline at end of file