Answers for "bash flags"

1

bash flags

a_flag=''
files=''

while getopts 'af:' flag; do
  case "${flag}" in
    a) a_flag='true' ;;
    f) files="${OPTARG}" ;;
  esac
done
Posted by: Guest on April-01-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language