4 ms·
xargs should be there. The most useful tool IMO.
by xpuente 6y ago
xargs should be there. The most useful tool IMO.
- based2 6y agohttps://en.wikipedia.org/wiki/Xargs https://en.wikipedia.org/wiki/Xargs
- JNRowe 6y agoAs 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/zargs https://github.com/zsh-users/zsh/blob/master/Functions/Misc/... or zshcontrib(1)
- jerzyt 6y agoI 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.
- JNRowe 6y ago> 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 https://linux.die.net/man/1/zshexpn .
- aludeman 6y agoyou may want to look at https://github.com/romkatv/zsh-bin https://github.com/romkatv/zsh-bin. roman also has some tooling which helps when ssh-ing to remote servers without zsh.