Answers for "execute bash script with arguments"

1

execute bash script with arguments

makereport -u jsmith -p notebooks -d 10-20-2011 -f pdf
#!/bin/bash
while getopts u:d:p:f: option
do
case "${option}"
in
u) USER=${OPTARG};;
d) DATE=${OPTARG};;
p) PRODUCT=${OPTARG};;
f) FORMAT=${OPTARG};;
esac
done
0
Posted by: Guest on October-30-2021

Code answers related to "execute bash script with arguments"

Browse Popular Code Answers by Language