10 lines
169 B
Bash
Executable File
10 lines
169 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
now=$(date +%s)
|
|
for f in /volume1/video/FTP/2???.??.??.*; do
|
|
s=$(date -r "$f" +%s)
|
|
if ((now-s > 60*60*24)); then
|
|
rm -f "$f"
|
|
fi
|
|
done
|