5 ### create a symlink in same dir
7 # actual : full path of the actual file
8 # link : the link name, only basename is used, will be created in same dir
9 function manage_link () {
12 # go in the right directory
14 actualbase=$(basename $actual)
16 latest=$(basename $latest)
17 echo "In $(pwd) : linking $actualbase to $latest"
18 rm -f $latest ; ln -s $actualbase $latest
19 # go back to current dir
24 # clean <where> <keeptime> [... find arguments]
29 echo "Cleaning $@ - older than $keeptime days"
30 find $where "$@" -atime +$keeptime | xargs rm