aboutsummaryrefslogtreecommitdiff
path: root/stow/vim/.vim/ftplugin/sh/snippets/template.txt
blob: 245ff49a81f8ecccfb90c592786b45d19ebe87e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

# template.sh: A template for sh scripts
#
# Usage: template.sh [-ac] [-b OPTARG] FILE...

usageMessage="Usage: template.sh [-ac] [-b OPTARG] FILE..."

# Process options
while getopts ":ab:c" opt; do
	case $opt in

		'a' )
			echo a ;;

		'b' )
			echo b $OPTARG ;;

		'c' )
			echo c ;;

		'?' )
			printf "${usageMessage}\n"
			exit 1

	esac
done
shift $(($OPTIND - 1))

<++>