Skip to content

Instantly share code, notes, and snippets.

@professorjamesmoriarty
Created April 22, 2013 11:52
Show Gist options
  • Select an option

  • Save professorjamesmoriarty/5434346 to your computer and use it in GitHub Desktop.

Select an option

Save professorjamesmoriarty/5434346 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "MOTD or whatever here or there.."
PS3="Your Game choice: "
cd /home/shaggy/Testingfolder/games
select FILENAME in *;
do
case $FILENAME in
*)
echo "You picked $FILENAME ($REPLY)"
ls "$FILENAME"
;;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment