Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
3
Impact
0 people reached

Sep
24
awarded  Autobiographer
Apr
1
awarded  Informed
Apr
1
answered How to delete all files in a directory except some?
Apr
1
comment How to delete all but one file in Unix?
To handle filenames with spaces one could use ls -1 | grep -v do_not_delete | xargs -I files rm "files"
Apr
8
awarded  Supporter