-2

I am trying to teach myself to write Shell Scripts on my Raspberry Pi, but I am struggling to make a menu where a user can choose from these different options:

  • display a list of current users
  • display a list of all files including hidden files in the home directory
  • output a calendar for the current month
  • quit the script.

closed as off-topic by Morgan Courbet, Bex, joan, lenik, RPiAwesomeness Sep 17 '14 at 18:59

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be specific to the Raspberry Pi within the scope defined in the help center." – Morgan Courbet, joan, lenik, RPiAwesomeness
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Perhaps if you post the code you are currently using someone could help. Have you looked at the whiptail package? – joan Sep 16 '14 at 8:28
  • I don't really know where to start I'm afraid, I was hoping someone would help me out with the code. – user3301407 Sep 16 '14 at 8:30
  • This question might fit better on Unix & Linux, as that is a *nix-oriented site. This site is Raspberry Pi-specific and your question is a more generic Linux issue than Raspberry Pi. – RPiAwesomeness Sep 17 '14 at 18:59
-1

maybe if you try using a while loop, and use 'do'. Then use 'case in'.

Not the answer you're looking for? Browse other questions tagged or ask your own question.