5 ms·
The article could have been enhanced by highlighting that some shells (e.g. zsh) provide expansion patterns that recurse into subdirectories. e.g. ls **/*.t
by knz42 11y ago
The article could have been enhanced by highlighting that some shells (e.g. zsh) provide expansion patterns that recurse into subdirectories. e.g.
ls **/*.txt
- nothrabannosir 11y agoor in bash, with the globstar option set: shopt -s globstar # e.g. in your .bashrc ls **/*.txt
- mnarayan01 11y agoIt's probably worth noting that the option is new in 4.0 -- relevant as OSX users are likely on 3.0.
- paulddraper 11y ago3.0 is ancient, but 4.0 is GPLv3....
- ahoka 11y agoThis thread perfectly sums up what's wrong with Unix.
- avar 11y agoApple not wanting to distribute software that they're perfectly able to distribute for paranoia/anti-GPLv3 reasons is a problem with Unix?
- yrro 11y agoWe're blaming "Unix", whatever means, for the stupid decision by one UNIX® vendor to stop shipping updated versions of the tools that form the core of the operating system? :)
- microcolonel 11y agoIn fish at least, I'd just use ls **.txt
- escherize 11y agoThanks for the tip!