the command
find /tmp -name 'core*' -type f -print0 | xargs -0
works fine on Linux,
but xargs -0
option is not legal on Solaris
what is the equivalent option ( xargs
? ) for Solaris 10
second question:
is it possible to change the syntax:
find /tmp -name 'core*' -type f -print0 | xargs -0
So it will fit for both OS - Linux and Solaris
I try on my solaris 10 machine:
find /tmp -name 'core*' -type f -print0 | xargs -0
xargs: illegal option -- 0
xargs: Usage: xargs: [-t] [-p] [-e[eofstr]] [-E eofstr] [-I replstr] [-i[replstr]] [-L #] [-l[#]] [-n # [-x]] [-s size] [cmd [args ...]]