শেল প্রোগ্রামিং এ if-then-else এর উদাহরণ

#!/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