If then else example in Shell Programming #Linux/Unix: Shell Programming – 001

#!/bin/sh

#If then else example
#if elif else

NOF=5

if [ $NOF -eq 27 ]

then

echo “No of files and directories = 27”

elif [ $NOF -gt 27 ]

then

echo “No of files are dir are greator than 27”

else

echo “No of files and directories are less than 27”

fi

exit From: http://sitestree.com/?p=12201
Categories:Linux/Unix: Shell Programming – 001
Tags:
Post Data:2018-04-16 19:47:32

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada