choice=0 while [ $choice -ne 4 ] do tput clear echo \"1. Today date and time\" echo \"2. Total login user\" echo \"3. My detail\" echo \"4. Exit\" echo \"Enter your choice\" read choice if [ $choice -eq 1 ] then echo \"Today is \`date +%B\` \`date | cut -f 3 -d \" \"\`, \`date | cut -f 6 -d \" \"\`\" echo \" and current time is \`date | cut -f 4 -d \" \"\`\" elif [ $choice -eq 2 ] then echo \"As of now \`who | wc -l\` user are login to the system\" elif [ $choice -eq 3 ] then echo \"My details :-------\" echo \"user name : \`who i am | cut -f 1 -d \" \"\`\" echo \"Terminal name: \`who i am | cut -f 4 -d \" \"\`\" echo \"Login date : \`who i am | cut -f 12-13, -d \" \"\`\" echo \"Login time : \`who i am | cut -f 14 -d \" \"\`\" fi echo \"Are you continue (1 for yes/0 for n)\" read temp if [ $temp -eq 0 ] then choice=4 fi done