Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sh check if program exists

if ! command -v <the_command> &> /dev/null
then
    echo "<the_command> could not be found"
    exit
fi
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sh #check #program #exists
ADD COMMENT
Topic
Name
5+5 =