Skip to content

Instantly share code, notes, and snippets.

# Getopts - parsing arguments
while getopts "hs:c:" opt; do
case $opt in
c)
echo "Argument $opt at position $OPTIND equals $OPTARG"
;;
s)
echo "Argument $opt at position $OPTIND equals $OPTARG"
;;
h)