6
public text v1 · immutable#!/bin/bash
echo -e "What would you like to see?
Todays' date \t\t\t(a)
Currently logged in users \t(b)
Contents of the / directory \t(c)
Enter your choice (a/b/c) ------> \c"
read ANSWER
case $ANSWER in
a|A) echo -e "Todays date is: \c"
date;;
b|B) echo -e "The peopled logged into the system are:"
who;;
c|C) echo -e "\nThe contents of the directory are: "
ls -F /;;
*) echo -e "Please enter either A, B or C\n"
esac