Update 2024-12-12 18:56 OpenBSD/amd64-t14
This commit is contained in:
11
.bin/clear-dl
Executable file
11
.bin/clear-dl
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
find . -maxdepth 1 | grep -v ^.$ \
|
||||
| while read file
|
||||
do
|
||||
date="$(stat -f "%Sm" -t %Y-%m "$file" )"
|
||||
[ OLD-$date ] && mkdir -p OLD-$date
|
||||
[ "$file" != "./OLD-$date" ] \
|
||||
&& mv "$file" OLD-$date/
|
||||
done
|
||||
echo done.
|
||||
Reference in New Issue
Block a user