Basic Of Shell Scripting -Part 2
If Statement:We use the "if statement" for checking the condition. If we have multiple conditions we can also use multiple "if statements".Syntax:
if [ expression ]
then
statement
fi
Example For If Statement:
#!/bin/bash
a=5
b=30
if [ $a -lt $b ...
learnshellscriptwithpra9.hashnode.dev2 min read