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

xargs should be there. The most useful tool IMO.


As zsh is mentioned at various points throughout the article I'll add that zargs¹ is often a great alternative to xargs. Combined with zsh's awesome globbing and filtering functionality it is often far nicer to work with than find.

1. https://github.com/zsh-users/zsh/blob/master/Functions/Misc/... or zshcontrib(1)


I think zsh is the best shell ever, unfortunately, I've reverted to bash, because it's too much hassle to install zsh everywhere I work. zsh globbing is on another level.


> zsh globbing is on another level.

I agree. That said I'll freely admit that liberal use of glob modifiers and qualifiers can lead to the appearance of line noise. Because of that I'll occasionally unroll them with `find(1)`-syntax if I post a snippet to help a co-worker, but love their expressiveness when in an interactive session.

For people not familiar with the extensive globbing options of zsh see https://linux.die.net/man/1/zshexpn .


you may want to look at https://github.com/romkatv/zsh-bin. roman also has some tooling which helps when ssh-ing to remote servers without zsh.





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

Search: