Shell Scripting Question:

Download Job Interview Questions and Answers PDF

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

Shell Scripting Interview Question
Shell Scripting Interview Question

Answer:

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

Download Shell Scripting Interview Questions And Answers PDF

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?