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

  • 0 posts edited
  • 0 helpful flags
  • 4 votes cast
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"