Quantcast
Channel: User David Winiecki - Ask Ubuntu
Viewing all articles
Browse latest Browse all 7

Comment by David Winiecki on How to remove all files from a directory?

$
0
0
I don't have enough reputation to add a real answer, but when using the shopt -s dotglob && rm /path/to/directory/* solution in bash, (shopt -s dotglob && rm /path/to/directory/*) (with parentheses) will prevent shopt -s dotglob from leaking beyond this one command. (Parentheses run the contained commands in a subshell.)

Viewing all articles
Browse latest Browse all 7

Trending Articles



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