#!/bin/bash USAGE="usage : $0 {filename}" CHECK_FILE=$1 if [ $# -lt 1 ] then echo "$USAGE" exit 1 fi if [ -x "$CHECK_FILE" ] then echo "$CHECK_FILE has the executable permission" else echo "$CHECK_FILE not has executable permission" fiOUTPUT-1:
test.sh has the executable permission
OUTPUT-2:
sujin_sr not has executable permission