💻 Software
How to escape file output for compatibilty with 'xargs'?
Fresh5 days ago
Mar 15, 20265088 viewsConfidence Score0%
0%
Problem
I have this command: 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?
Error Output
find $1 | xargs touch
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to escape file output for compatibilty with 'xargs'?
Low Risk
Here is the simpler, faster and most portable way to do it : Note the ending syntax. Unlike the more popular ending syntax, is packing arguments the same way does. Compared to the often suggested , this only solution is more efficient because: a sin…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix