-
Notifications
You must be signed in to change notification settings - Fork 1.9k
SC2011
ls | xargs -n1 wc -wfind . -maxdepth 1 -print0 | xargs -0 -n1 wc -wfind . -maxdepth 1 -exec wc -w {} \;Using -print0 separates each output with a NUL character, rather than a newline, which is safer to pipe into xargs. Alternatively using -exec avoids the problem of piping and parsing filenames in the first place.
See SC2012 for more details on this issue.
cmd <<<