
“quote”
Download quote
An Open Source command line quoting utility
Options:
-h Help
Example:
Use this to help xargs when pass arguments with spaces. Ever get
results like this:
$ find . -type f| xargs cat
Outputs:
cat: ./foo: No such file or directory
cat: bar.txt: No such file or directory
cat: ./name: No such file or directory
cat: with: No such file or directory
cat: spaces.txt: No such file or directory
Following xargs suggestion you may have tried the -0 option, but
that gets you this:
$ find . -type f| xargs -0 cat
Outputs:
cat: ./foo bar.txt
./name with spaces.txt
: No such file or directory
quote solves this problem (and many you could dream up like it).
So now try:
$ find . -type f | ./quote.zip | xargs cat
Finally the results are what was expected:
Begin foo bar.txt
Found foo bar!!
End foo bar.txt
Begin name with spaces.txt
And this one, too!!
End name with spaces.txt
Download quote