Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

rm -rf except

ls | grep -v 'file-to-keep' | xargs rm
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rm
ADD COMMENT
Topic
Name
4+9 =