Open LukeShortCloud opened 7 months ago
This is useful for deleting all files in a directory except for a select few. For example:
$ shopt -s extglob $ rm -r -f /home/!("foobaruser")
https://askubuntu.com/questions/889744/what-is-the-purpose-of-shopt-s-extglob
This is useful for deleting all files in a directory except for a select few. For example:
https://askubuntu.com/questions/889744/what-is-the-purpose-of-shopt-s-extglob