Do manual xargs
:
If you want an input argument to contain blanks or horizontal tabs, enclose it in double quotes or apostrophes. If the argument contains a double quote character (
"
), you must enclose the argument in apostrophes. Conversely, if the argument contains an apostrophe ('
), you must enclose the argument in double quotes. You can also put a backslash (\
) in front of a character to tell xargs to ignore any special meaning the character may have (for example, white space characters, or quotes).
Isso significa que você pode escapar de citações se as citações forem citadas:
$ echo "/Place/=\'http://www.google.com\'" | xargs echo
/Place/='http://www.google.com'
funcionará, mas echo /Place/=\'http://www.google.com\' | xargs echo
não.