Quote:
Originally Posted by scm Unless the Linux implementation of xargs is broken, the xargs solution will work regardless of list size. I suggest you learn the use of xargs before you make misleading statements like that. |
It's not xargs, it's the shell.
As far as I know, there's a limit on how long a command can be, and that has nothing to do with the command, it's a limitation of the shells themselves.
The while loop will always work, because the command is not long, only a single argument is passed on each iteration.
I would be more than glad to hear proof of the opposite, but I think that I am right.
EDITED: I am not sure anymore about the xargs stuff, I will have to research about it. There's no need to be that harsh though. I am sure you are perfect and never commit mistakes, but I am just a mere mortal and I am happy to stand corrected, though if possible in a more friendly way. I don't intentionally spread misleading statements.
Cheers and take it easy
