Remove Many File from Shell


/ Published in: Bash
Save to your folder(s)

Beyond a certain number of files, the 'rm' command throws an 'Argument list too long" error. This is the solution. Use cautiously.


Copy this code and paste it in your HTML
  1. find . -name 'FILE*' | xargs rm

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.