 |
Basic Linux Shell Scripting Language : 'Simple If', 'If-else', 'If-elif-else' and 'Nested If' Statem
Here we go! Types of Conditional Statements Simple If Statement 'If-else' Statement 'If-elif-else' Statement 'Nested If' Statement 1. Simple 'If' Statement Syntax: if [ condition ] then -- Block of Commands -- fi Example: #!/bin/bash echo "Enter an Even N
www.yourownlinux.com |
 |