file.1p
Determine whether an argument is a binary executable file: file -- "$1" | grep -q ':.*executable' && printf "%s is executable.\n$1"
file -- "$1" | grep -q ':.*executable' && printf "%s is executable.\n$1"