Hi, > #!/bin/bash > dirs=( /var/cosign/filter /var/cosign/daemon /var/cosign/tickets ) > for d in ${dirs[@]}; do > [ -d $d ] && /usr/bin/find $d -type f -mtime +0 | > /usr/bin/xargs /bin/rm -f > done > exit 0
I guess -delete can be used instead of xargs? [ -d "$d" ] && /usr/bin/find "$d" -type f -mtime +0 -delete Regards, Martin Sucha ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ Cosign-discuss mailing list Cosign-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cosign-discuss