Why does xargs strip quotes from input text?
Here is a simplified example:
echo "/Place/='http://www.google.com'" | xargs echo
outputs
/Place/=http://www.google.com
Is there any way to work-around this? (xargs -0 doesn't help me)
|
Why does xargs strip quotes from input text? Here is a simplified example:
outputs
Is there any way to work-around this? (xargs -0 doesn't help me) |
|||
|
From the
This means you can escape quotes if the quotes are quoted themselves:
will work but |
||||
|
|
|
You could use GNU Parallel instead:
Then you do not have to do the quoting yourself. Learn more: https://www.youtube.com/playlist?list=PL284C9FF2488BC6D1 |
|||
|
|
xargstreats quotes and backslashes specially as part of the spec. Post what you are trying to do withxargsinstead. – jw013 May 8 '12 at 13:31xargs -0works for me here... Why doesn't it help you? – derobert Apr 8 at 16:24