Mercurial > pdfconcat
comparison bin/cleanup.cron @ 0:8f7e68d54c6d
initial commit: should be already usable
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 29 Aug 2013 13:58:17 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8f7e68d54c6d |
---|---|
1 #!/bin/sh | |
2 # | |
3 # print list of old files from the upload directory | |
4 # output is meant to be piped into: `xargs rm -f' | |
5 | |
6 if [ $# -lt 2 ] ; then | |
7 echo "usage: ${0##*/} NUM_OF_DAYS_TO_KEEP DIR..." >&2 | |
8 exit 1 | |
9 fi | |
10 | |
11 days="$1" | |
12 shift | |
13 | |
14 find "$@" -maxdepth 1 -mindepth 1 -atime +"$days" -print |