Using Periodic to delete specific files

It looks like I need to catch files of -type s and -type p when cleaning up /tmp/

Can I just duplicate the line of code referencing -type f below with -type s and -type p in daily/110.clean-tmps ?

Code:
 do
                    [ ."${dir#/}" != ."$dir" -a -d $dir ] && cd $dir && {
                        find -x -d . -type f $args -delete $print
                        find -x -d . ! -name . -type d $dargs -delete $print
                    } | sed "s,^\\.,  $dir,"
                done | tee /dev/stderr | wc -l)
 
Back
Top