Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

if else bash shell script

if [[ some condition ]]; then
  do_this
elif [[ another condition ]]; then
  do_that_a
elif [[ yet another condition]]; then
  do_that_b
else
  do_that_default_thing
fi
Source by www.compciv.org #
 
PREVIOUS NEXT
Tagged: #bash #shell #script
ADD COMMENT
Topic
Name
5+7 =