Add support for use with xargs
See original GitHub issueDoing find … | imageoptim
works as expected, but find … | xargs imageoptim
does not (it quits and shows the help message). This matters because if we want to find … -print0 | xargs -0 imageoptim
, we can’t.
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Linux and Unix xargs command tutorial with examples
Tutorial on using xargs, a UNIX and Linux command for building and executing command lines from standard input. Examples of cutting by ...
Read more >How to Use the Bash xargs Commands - Linux Hint
The xargs is a bash command that allows the execution of multiple commands in the same line, whether the commands take parameters or...
Read more >Using xargs to Construct Dynamic Commands - Thomas Stringer
Without a doubt, one of my most-used commands in the terminal is xargs. This utility takes standard input and can dynamically build and...
Read more >xargs: How To Control and Use Command Line Arguments
xargs command is designed to construct argument lists and invoke other utility. xargs reads items from the standard input or pipes, delimited by ......
Read more >xargs - append each argument with a parameter
One way to do it: echo "a b c" | xargs printf -- '-f %s\n' | xargs mycommand. This assumes a , b...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @vitorgalvao, my inexperience with
xargs
is showing here. I’ll leave this open as it sounds like something that should be supported, so you can also run those images through imagealpha and JPEGmini.Thanks for the link, that will be useful.
Hey @vitorgalvao, I decided not to proceed but if anyone has a nice solution they are welcome to get involved.