3 ms·
How would you invoke something like `rm * .bak` in such a shell? Do you have a separate command for globbing, such as: rm $(glob *.bak)
by majewsky 9y ago
How would you invoke something like `rm * .bak` in such a shell? Do you have a separate command for globbing, such as:
rm $(glob *.bak)
- laumars 9y agoYeah pretty much just that: rm @{g *.bak} `g` returns a JSON array of file names and the @{} tells the shell to expand the array into parameters. This way you don't need to worry about spaces in file names or other problems with escaping.