Answers for "bash delete everything except"

3

delete all the files without one in linux

# delete all except the filename

$ rm -v !("filename")
Posted by: Guest on August-10-2020
0

bash delete everything except

$ rm -v !("filename1"|"filename2")
Posted by: Guest on October-19-2020

Code answers related to "bash delete everything except"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language