Quantcast
Channel: Remove all files except some from a directory - Stack Overflow
Viewing all articles
Browse latest Browse all 21

Remove all files except some from a directory

$
0
0

When using sudo rm -r, how can I delete all files, with the exception of the following:

textfile.txtbackup.tar.gzscript.phpdatabase.sqlinfo.txt

Viewing all articles
Browse latest Browse all 21

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>