jdberry / tag

A command line tool to manipulate tags on Mac OS X files, and to query for files with those tags.
MIT License
1.47k stars 94 forks source link

xargs: unterminated quote #28

Closed mgroth0 closed 7 years ago

mgroth0 commented 7 years ago

This is a very useful tool. Unfortunately, no matter what I do I can't pipe it to xargs. Something in the readme said to use -0. But although this clearly changes the format of the output, whether or not I have it I always only get xargs: unterminated quote.

In the meantime I will look for a workaround. If anyone can share how they process the raw output without xargs perhaps that could help me too.

jdberry commented 7 years ago

This seems to work ok for me:

tag -0 -l | xargs -0 -L1 echo

That's not a very useful example, but it demonstrates that tag is deliminating lines with \0.