Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash check if command is available

if ! <command> &> /dev/null
then
    echo "<command> not found"
    exit
fi
 
PREVIOUS NEXT
Tagged: #bash #check #command
ADD COMMENT
Topic
Name
5+1 =