#!/bin/bash declare -i G=0 while getopts :g: OPTIONSdo case $OPTIONS in g) G=1 PATH=$OPTARG;; esacdone if [ $G -eq 1 ]then mkdir -p $PATH ls -lfi