Skip to content

Instantly share code, notes, and snippets.

View wesley-dean-flexion's full-sized avatar
👍
Awesome

Wes Dean wesley-dean-flexion

👍
Awesome
View GitHub Profile

Keybase proof

I hereby claim:

  • I am wesley-dean-flexion on github.
  • I am wdeanflexion (https://keybase.io/wdeanflexion) on keybase.
  • I have a public key whose fingerprint is 94D1 CD20 B059 ED33 62A9 F27B D42C 0A58 6DF3 FCFF

To claim this, I am signing this object:

@wesley-dean-flexion
wesley-dean-flexion / get_opts_example.sh
Last active December 20, 2019 17:03
Quick and dirty example of 'getopts' usage in sh
#!/bin/sh
# default value for the variable
variable_default="default value"
variable=""
# parse the flags with a string of acceptable
# options; if an option is followed by a
# colon, then getopts sticks whatever value
# was sent into ${OPTARG} for retrieval;