#!/bin/sh if [ $# -ne 1 ] then echo "agrc is error" exit fi if [ -f $1 ] then echo "this is file" fi if [ -d $1 ] then echo "this is dirctory" fi