#!/bin/sh # # This script fixes the ownership of all files that is in /var/sadm/install # It bypasses 3 directories /usr # /usr/lib # /usr/openwin # WKDIR=/var/sadm/install cd $WKDIR # egrep -v "/usr d |/usr/lib d |/usr/openwin d " contents | grep ' d ' | awk '{ print "chown -R " $5":"$6,$1 }' > /tmp/fixchown.sh