Write a Linux shell script which display full names like January if we enter janu, janua, and so on........, Unix Program for word prediction
Program
clear
echo"Enter initials of month:"
read mon
case $mon in
ja*)echo"Month is January.";;
f*)echo"Month is February.";;
mar*)echo"Month is March.";;
ap*)echo"Month is April.";;
may*)echo"Month is May.";;
jun*)echo"Month is June.";;
jul*)echo"Month is July.";;
au*)echo"Month is August.";;
s*)echo"Month is September.";;
o*)echo"Month is October.";;
n*)echo"Month is November.";;
d*)echo"Month is December.";;
*)echo"Invalid month.";;
esac
Output:
Enter initials of month: jan
Month is January.
<<< Previous || Current || Next >>>
No comments:
Post a Comment