#! /bin/sh tryexec () { command -v $1 >/dev/null && exec "$@" } tryexec pandoc -f markdown -t html tryexec markdown echo "no markdown thingies found
" cat echo "