Skip to content

Instantly share code, notes, and snippets.

@reggi
Created January 9, 2023 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reggi/bbd9c3fa020c0985f7a2694145615dc6 to your computer and use it in GitHub Desktop.
Save reggi/bbd9c3fa020c0985f7a2694145615dc6 to your computer and use it in GitHub Desktop.
#!/bin/bash
# shellcheck disable=SC2034
USAGE="<word>"
# shellcheck disable=SC2034
DESC="converts hyphens to underscore"
main () {
echo "$1" | tr '-' '_'
}
source ./hyphen_to_underscore.fn.sh
main hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment