Skip to content

Instantly share code, notes, and snippets.

View mitch-kyle's full-sized avatar

Mitch Kyle mitch-kyle

  • New Brunswick, Canada
View GitHub Profile
@mitch-kyle
mitch-kyle / update-config-val
Created December 19, 2018 01:14
Use this bash script to destroy your config files!
#!/bin/bash
COMMENT_PREFIX=${COMMENT_PREFIX:="#"}
SEPARATOR=${SEPARATOR:="="}
in_place=no
function usage {
echo "update-config-val: comment all lines beginning with <config-property> and insert a line at the end of the <file> with the format <config-property>$SEPARATOR<value>

Keybase proof

I hereby claim:

  • I am mitch-kyle on github.
  • I am mitchkyle (https://keybase.io/mitchkyle) on keybase.
  • I have a public key whose fingerprint is 9351 B9AD 7755 2FA4 940F 62DD ABE9 3542 5882 2656

To claim this, I am signing this object: