Quantcast
Channel: How to escape file output for compatibilty with 'xargs'? - Super User
Viewing all articles
Browse latest Browse all 4

How to escape file output for compatibilty with 'xargs'?

$
0
0

I have this command:

find $1 | xargs touch

But files with ' characters in their names fail with "xargs: unmatched single quote", and I guess other special characters would cause the same problem.

How can I escape the output so this command works with all filenames?


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images