Use find combined with xargs.
find . -name 'file*' -size 0 -print0 | xargs -0 rm
You avoid to start rm for every file.
Use find combined with xargs.
find . -name 'file*' -size 0 -print0 | xargs -0 rm
You avoid to start rm for every file.