|
|
|
|
|
by elesiuta
995 days ago
|
|
I have never heard of pyp before, looks neat! I made something similar myself, pyxargs [1], which doesn't have all the magic of pyp, but although being geared towards more xargs like usage, it also functions somewhat similarly. For example, although not as clean as the magic variables x, l or line, you can use '{}' ls | pyp 'x[:3]' == ls | pyxargs --pyev "'{}'[:3]"
Overall the syntax of pyp looks much better, and the --explain feature is nice since pyp seems to do a little more for you under the hood (the closest pyxargs equivalent being --dry-run). I think I'll start using pyp myself when not running commands over multiple directories of files or in parallel.[1] https://github.com/elesiuta/pyxargs |
|
But yeah I didn't know either existed and I wish I did, seems like it could be really useful in the shell