|
|
|
|
|
by eqvinox
3 days ago
|
|
I am saying I have a whole bunch of other (not find) sources of items (not even filenames necessarily) that I need to loop over, none of which do null termination on output. It's an item per line, with spaces unescaped. I would either need "| tr '\n' '\0' | xargs -0" or "| xargs -d '\n'". Considering the body of a while loop is more flexible too, I spend the brain capacity on remembering the details on that rather than xargs. I'm well aware xargs is sometimes called for, but it's rare and when it happens I go look up the man page. |
|