wube has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to do this in Perl ??
by VSarkiss (Monsignor) on Nov 13, 2001 at 21:19 UTC | |
by belg4mit (Prior) on Nov 13, 2001 at 21:47 UTC | |
by blakem (Monsignor) on Nov 14, 2001 at 01:13 UTC | |
by wube (Acolyte) on Nov 15, 2001 at 18:58 UTC | |
|
Re: How to do this in Perl ??
by brianarn (Chaplain) on Nov 13, 2001 at 21:08 UTC |