#!/bin/bash for cmd in "$@"; do command -v "$cmd" &>/dev/null || return 1 done return 0