On Tue, Jul 17, 2018 at 07:28:25PM -0700, Eric Pruitt wrote: > The suckless tools don't strictly follow POSIX. For example, sbase mv(1) > and cp(1) don't support "-i". Furthermore it's pretty portable; find(1) > on OpenBSD, FreeBSD, macOS and GNU find(1) all support using NUL bytes. > It's the only sane way to securely support any legal filename. > > Eric >
And that's where you're wrong. "find | xargs" is wrong for the same reason "sudo su" is wrong, for the same reason "cat singlefile | whatever" is wrong: You're doing it wrong. In your case "find -exec" does everything you want. It also supports all possible file names. Ciao, Markus