question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for use with xargs

See original GitHub issue

Doing 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:closed
  • Created 8 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JamieMasoncommented, Dec 23, 2015

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.

0reactions
JamieMasoncommented, Dec 23, 2018

Hey @vitorgalvao, I decided not to proceed but if anyone has a nice solution they are welcome to get involved.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found