linux bash script to sun solaris

Hi guys,
I seek a solution for this action for Sun solaris.

find /sapmnt/${up}/global -prune -printf "%m %M %u %g %p\n" > $DAT1

The Application/Utilities in Sun Solaris are to old and cant understand
"-printf". An update for Application/Utilities is exist, but not possible to implement this.

thanks for your help
ixibits

hi
which your system ? sparc, sol7-8...10 or ?

why could not implement ?
isnt there any source file (for gnu find) to your o.s ?

Sun Microsystems Inc. SunOS 5.9 Generic May 2002

The System Owner will not uapdate the Application/Utilities :mad:

actually do you want an alternative command for this ?

find /sapmnt/${up}/global -prune -printf "%m %M %u %g %p\n" > $DAT1

It has nothing to do with Solaris too old but the find command itself : You were not using a standard find on your other box (linux...) but the GNU find...
As suggested your only option if you want to use your syntax as is would be to get installed GNU find on your Solaris...

if you search an alternative then you can try this :wink:

# find /sapmnt/directory/global -prune |pkgproto|sed 's/.* .* \(.*\) \(.*\) \(.*\) \(.*\)/\2 \3 \4 \1/'
0755 root root /sapmnt/directory/global

yes, that is it :slight_smile:

many thanks
ixibits