echo "Enter the two filenames"
read file1
read file2
perm1=`ls -l $file1 | gawk '{ print $1}'`
perm2=`ls -l $file2 | gawk '{ print $1}'`
if [ "$perm1" == "$perm2" ]; then
    echo "$perm1"
else
    echo "File : $file1, Permission : $perm1"
    echo "File : $file2, Permission : $perm2"
fi

if [ $# -ne 2 ]; then
    echo "arguments invalid"
    exit
fi
perm1=`ls -l $1 | gawk '{ print $1}'`
perm2=`ls -l $2 | gawk '{ print $1}'`
if [ "$perm1" == "$perm2" ]; then
    echo "$perm1"
else
    echo "File : $1, Permission : $perm1"
    echo "File : $2, Permission : $perm2"
fi

Update SS Lab Q8.a to take arguments
Update SS Lab Q8.a to take arguments

Signed-off-by: Karthik Nayak <f21e23168db91f2bd3ec812184a2ac51d05a196a@gmail.com>
