W.A.S.S to display system time in words.
Program
# W.A.S.S to display system time in words.
hrs=`date +%H`
mnts=`date +%M`
sec=`date +%S`
echo -e "`grep "$hrs" hour.txt|cut -d" " -f2` hours - \c"
#grep is used for searching records from file
echo -e "`grep "$mnts" minutes.txt|cut -d" " -f2` minutes - \c"
echo "`grep "$sec" minutes.txt|cut -d" " -f2` seconds"
Output
sh wtime.sh
Nine hours - ThirtyTwo minutes - Twenty seconds