Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


That'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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: