#!/bin/bash

if [ $# -ne 1 ]; then
  echo "Usage: "`basename $0`" <command name>"
  exit 1
fi

cmd=$1

if which "$cmd" > /dev/null 2>&1 ; then
  echo "${cmd} command found."
else
  echo "${cmd} command not found."
fi
