Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

rm rf except one directory

#bash
shopt -s extglob
cd parent
rm -rf !(four)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rm #rf #directory
ADD COMMENT
Topic
Name
6+2 =