#!/bin/sh if expr "$1" : ".*\.pub" &>/dev/null then echo "you are using $1" else echo "you must using .pub file" fi