Return to Snippet

Revision: 6845
at June 19, 2008 03:05 by Juanje


Initial Code
#!/bin/bash


while [ "$#" -gt 0 ]
do
	case $1 in
	-h | --help)
		echo "Show program help for $(basename $0)"
		shift
		;;
	-l | --list)
		echo "List the options"
		shift
		;;
	*)  
		echo "Other options"
		shift
		;;
	esac
done

Initial URL

                                

Initial Description

                                

Initial Title
Tipical bash script option menu

Initial Tags
Bash

Initial Language
Bash