You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# GTU10: Write a script to display the date, time and a welcome message (like Good Morning should be displayed with “a.m.” or “p.m.” and not in 24 hours notation.
# Code written By: Rushyang Darji
# Last Updated: 19.08.2010
# My Online Repository: http://github.com/rushyang/GTU-OS-Bash-Scripts
msg2=`date +%H`
echo "Welcome $USERNAME!"
time=`date +"%F %I:%M:%S %p"`
echo "Current Time is: $time"
if [[ "$msg2" -ge "5" ]] && [[ "$msg2" -lt "12" ]]; then