shell script If Statement ( If then , If then else, If elif else)
Model 1
#!/usr/bin/bash
count=10 if [ $count -eq 10 ]
then
echo "Condition True"
fi
Model 2
#!/usr/bin/bash
count=10
if [ $count -ne 0 ]
then
echo "Condition True" fi
Model 3
#!/usr/bin/bash
count=10
if [ $count > 0 ]
then
echo "Condition True"
fi
Mo...
sundarpalanivel.hashnode.dev1 min read