#!/bin/ksh # get permissions for use with setperm script. # usage: getperm /tmp # getperm -type f . PATH=/bin:/usr/bin:/usr/local/bin export PATH case "$#" in 0) echo "usage: $0 dir"; exit 1 ;; *) ;; esac exec gfind ${1+"$@"} -printf "%u %g %m %p\n" | sort +3 -t' ' exit 0