Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

rm except one file

shopt -s extglob 
rm !(file.txt)
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #rm #file
ADD COMMENT
Topic
Name
2+6 =