in reply to Re^2: Run system find -exec on remote machine
in thread Run system find -exec on remote machine

The BSD find(1)/xargs(1) also understand the extra switches. Your other version unfortunately still breaks on embedded newlines, which are the most important reason to use the switches. Absent of a way to make find(1) separate filenames with nulls (such as on Solaris), I'd rather fall back on -exec.

Makeshifts last the longest.

  • Comment on Re^3: Run system find -exec on remote machine