Files
svr/usr/bin/clean-dict
T

15 lines
244 B
Bash
Raw Normal View History

2026-01-23 08:55:18 +01:00
#!/usr/bin/bash
ARCHIVE_DIR=${2:"/tmp/clean-dict.del"}
mkdir -p $ARCHIVE_DIR
if [ "$#" -lt 1 ] ; then
find . -type f -size -"${SIZE_MIN}c" -exec mv {} $ARCHIVE_DIR \;
exit 1
elif
find . -type f -size -"${SIZE_MIN}c" -delete
fi
exit 0