#!/bin/bash
file=$1
perm=""
if [ -x $file ]
then
	perm="execute $perm"
fi
if [ -w $file ]
then
	perm="write $perm"
fi
if [ -r $file ]
then
	perm="read $perm"
fi
if [ "$perm" = "" ]
then
	echo No access to $file
else
	echo "You have these permissions on $file : $perm ."
fi
