13 November

Using if-else in Shell Scripting

In the previous post, we learned how to use variables in shell script. Next, we are going to learn about using if-else in shell scripting. The if-else construct is used whenever we want to evaluate a condition i.e., whether some condition is true or false. Syntax if [ condition ] then   statement 1   […]