Hi ? i have a simple shell script program in Bourne Shell..
and would like someone to help me out here...
exitstatus=1
for i in `find $1 -group $2 -print`
do
if grep -s '^'$i'$' $oughttobe
then
exitstatus=0
else
if grep `ls -l $i | awk '{printf "%s",$3}'` $owners >>$names
then
echo $i >>$names
exitstatus=0
fi
fi
done
exit $exitstatus
Would someone be able to answer this question for me please?
How many command line arguments are expected and what do they each represent?
The script makes use of some other variables, eg, names, owners etc..:what would make these variables available to it..
if someone can answer these question for me, that would be much appreciated.
Cheers,
Syed