Lets say I have a case statement and I want to execute it by clicking on a Rox bash file. But I want it to open up in a terminal.
What can I add to this code to do this?
Here is the sample script,
#!/bin/bash
#Mike Ivison
# Date 2/22/2021
clear
echo 'a = Date and Time'
echo 'b = List file and directories'
echo 'c = List users logged in'
echo 'd = SYSTEM UPTIME'
echo
read choices
case $choices in
a) date;;
b) ls;;
c) who;;
d) uptime;;
*) echo Invalid choice - Bye.
esac