#!/bin/bash if test -d "$1" then echo "directory" else echo "file" fi