in Technology by

What is the syntax of "nested if statement" in shell scripting?

1 Answer

0 votes
by
  1. if [ Condition ]  
  2. then  
  3. command1  
  4. command2  
  5. .....  
  6. else  
  7. if [ condition ]  
  8. then  
  9. command1  
  10. command2  
  11. .....  
  12. else  
  13. command1  
  14. command2  
  15. .....  

Related questions

0 votes
    What is the syntax of "nested if statement" in shell scripting?...
asked May 28, 2021 in Technology by JackTerrance
0 votes
    What is the syntax of while loop in shell scripting?...
asked May 28, 2021 in Technology by JackTerrance
0 votes
    What is the use of "$#" in Shell Scripting?...
asked May 28, 2021 in Technology by JackTerrance
0 votes
    What are the disadvantages of shell scripting?...
asked May 28, 2021 in Technology by JackTerrance
0 votes
    What are the advantages of shell scripting?...
asked May 28, 2021 in Technology by JackTerrance
0 votes
    What is the use of "$#" in Shell Scripting?...
asked Jan 19, 2021 in Technology by JackTerrance
0 votes
    What are the disadvantages of shell scripting?...
asked Jan 19, 2021 in Technology by JackTerrance
0 votes
    What are the advantages of shell scripting?...
asked Jan 19, 2021 in Technology by JackTerrance
0 votes
    new to python, currently reading diveintopython and trying to run the following code from the book: def ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 9, 2022 in Education by JackTerrance
0 votes
    new to python, currently reading diveintopython and trying to run the following code from the book: def ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 7, 2022 in Education by JackTerrance
0 votes
    new to python, currently reading diveintopython and trying to run the following code from the book: def ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 7, 2022 in Education by JackTerrance
0 votes
    new to python, currently reading diveintopython and trying to run the following code from the book: def ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    new to python, currently reading diveintopython and trying to run the following code from the book: def ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    new to python, currently reading diveintopython and trying to run the following code from the book: def ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 5, 2022 in Education by JackTerrance
+1 vote
    Select the statement that has correct JavaScript syntax a)document.write("text") b)alert stop ; c)console.log("text");...
asked Oct 8, 2020 in Technology by JackTerrance
...