echo -n "Enter filename: " read filename if [ -r "$filename" -a -s "$filename" ] then echo File $filename exists and contains information. echo You have read access permission to the file. fi