I have never run into a case where somebody thought it was reasonable to include a newline in a filename.
What about double quotes or backslashes? I propose the following:
#!/bin/bash perl -pe'chomp; s/$/\0/' | xargs -0 "$@"
In reply to Re: yargs -- xargs but handle spaces in filenames
by zwon
in thread yargs -- xargs but handle spaces in filenames
by tye
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |