shellcheck/badcase/subshellvar4

4 lines
82 B
Plaintext

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