Originally posted by Michael Hertel
We have a ksh script that cleans up zero length files.
I'd like to tcl'ize the command.
KSH:
find $HCISITEDIR/exec/processes/split2/smat -type f -size 0c -exec rm {} ;
TCL:
if {[catch {exec find ./ -type f -size 0c -exec rm {} ;} msg]} {
echo $msg
}
This doesn't seem to work.
Any help would be appreciated.