pdfconcat

view 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
line source
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'
6 if [ $# -lt 2 ] ; then
7 echo "usage: ${0##*/} NUM_OF_DAYS_TO_KEEP DIR..." >&2
8 exit 1
9 fi
11 days="$1"
12 shift
14 find "$@" -maxdepth 1 -mindepth 1 -atime +"$days" -print