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