#!/usr/bin/env bash if ! $(which $1 &>/dev/null); then echo "command not found" else echo "$1 exists" fi