diff options
| author | mo <mo.khan@gmail.com> | 2019-05-25 19:34:05 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2019-05-25 19:34:05 -0600 |
| commit | 498db3bdcdedb7d603817b78141e167f8ad05c67 (patch) | |
| tree | fe9ed106495f29b8b353d52e6e841bf0455a0ac8 | |
| parent | a0ed1fb8e76217c1013acff9169ba987c0c5044a (diff) | |
copy original
| -rwxr-xr-x | bin/problem-13.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/problem-13.sh b/bin/problem-13.sh new file mode 100755 index 0000000..77cd32e --- /dev/null +++ b/bin/problem-13.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +echo "Use one of the following options:" +echo " d: To display today's date and present time" +echo " l: To see the listing of files in your present working directory" +echo " w: To see who's logged in" +echo " q: To quit this program" +echo "Enter your option and hit <Enter>:" + +read option +case "$option" in + d) date + ;; + l) ls + ;; + w) who + ;; + q) exit 0 + ;; +esac +exit 0 |
