Any assistance towards reaching Nirvana will be greatly appreciated.#!/bin/sh # # This script fixes the ownership of all files that is in /var/sadm/in +stall # 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
Edit kudra, 2001-11-14 Added code tags
In reply to How to do this in Perl ?? by wube
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |