# Exit immediately if any command fails:
set -e
case $1 in
test)
echo "Notes:"
cat ~/.notes
;;
click)
gedit ~/.notes &
echo "Notes:"
cat ~/.notes
;;
*)
echo "Usage: $0 [ test | click ] test-value"
esac