Shell Scripting Question:

What’s a way to do multilevel if-else’s in shell scripting?

Tweet Share WhatsApp

Answer:

if {condition} then {statement} elif {condition} {statement} fi

Read All 30 Shell Scripting Questions
Previous QuestionNext Question
How do you find out the number of arguments passed to the shell script?How do you write a for loop in shell?