💻 Software
Command line wizardry: spaces in file names with find | grep | xargs
Fresh7 days ago
Mar 15, 202618505 viewsConfidence Score0%
0%
Problem
I need a way to run grep on a list of files which may contain spaces in the file name. On a list of files with no spaces, it's pretty straight forward and easy. Also, I know how to deal with spaces in the file names for find and xargs. I'm just looking for a way to use with the -print0 command. I'm…
Error Output
find * -print 0 | xargs -0 -i{} echo {}Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Command line wizardry: spaces in file names with find | grep | xargs
Low Risk
Are you looking for "howdy doody" in the filename, or within the file? is what you need to use to split the null-terminated output from . In your example, the is extraneous; don't bother with it. You can also run your command directly from the with …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix