Can you help me to find trouble with my code? It has to delete every files in the tree
function option_c {
for i in `find "$TEST_DIR" -type f | grep -E "(stdout|stderr|status)-(captured|delta)"` ; do
if [ -w $i ] ; then
rm $i
fi
exit 0
done
}
Thanks for your help.
Take out the
exit, it terminates your script after the first file.You could do all of this with
finditself, though.