3 ms·
Better make sure there's no spaces in that <something> or that will break. I usually use this: <something> | tr '\n' '\000' | xargs -0 -n1 command The tr w
by brokenmachine 7y ago
Better make sure there's no spaces in that <something> or that will break.
I usually use this:
<something> | tr '\n' '\000' | xargs -0 -n1 command
The tr will convert newlines to nulls. Otherwise you need to change the IFS.
Just commenting because this was a bugbear of mine when getting started in bash.