Linux getopt command is often used to parse script options. I find a piece of boilerplate code for this command and mark it in this post for further reference. set -eu set +e options=$(getopt –name “demo.sh” -o “f:d” -l “file:,debug”… Read More
Technology Makes Life Better!
Linux getopt command is often used to parse script options. I find a piece of boilerplate code for this command and mark it in this post for further reference. set -eu set +e options=$(getopt –name “demo.sh” -o “f:d” -l “file:,debug”… Read More