Shell Scripting Question:
Download Questions PDF

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

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?