4 ms·
Great list - I didn't know about glob operators. That glob negation is going to be very handy. Re number 2: That works in plain old Bash too: ls DSC{100..
by mryan 11y ago
Great list - I didn't know about glob operators. That glob negation is going to be very handy.
Re number 2: That works in plain old Bash too:
ls DSC{100..200}.jpg
- Symbiote 11y agoThat's not quite the same. Zsh's <X-Y> is file globbing, only files that exist are returned. {X-Y} is parameter expansion without regard to files: > touch 1 3 > ls <1-3> 1 3 > ls {1..3} cannot access 2: no such file or directory 1 3 Nevertheless, that's a useful and more powerful alternative to seq that I didn't know about.