Bash [One Liner] - Remove Utility : Remove All Files Other Than Ext


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



Copy this code and paste it in your HTML
  1. for x in *; do [-x $x -a -f $x.ext] && echo $x; done | xargs rm

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.