shellcheck/badcase/subshellvar4

3 lines
82 B
Text

n=0;
mycmd | while read foo; do rm "$foo"; ((n++)); done
echo "Deleted $n files"