I am sick and tired of the following error message:
xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option
So, here is a solution, zargs.sh:
#!/bin/sh
sed "s/'/\\\\'/g" | xargs -I {} $* "{}"
You should be able to chmod +x it and use it just like you'd use xargs, provided that you are me. I've tested
(
Read more... )