Skip to content

Instantly share code, notes, and snippets.

@sdball
Created October 24, 2018 00:19
Show Gist options
  • Save sdball/ccafc964527e60f0e0866335d6633986 to your computer and use it in GitHub Desktop.
Save sdball/ccafc964527e60f0e0866335d6633986 to your computer and use it in GitHub Desktop.

Revisions

  1. sdball created this gist Oct 24, 2018.
    10 changes: 10 additions & 0 deletions letters.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    check_letter() {
    echo "$1: `type $1 >/dev/null && type $1 | sed -e \"s/^$1: //\" | tr '\n' ' '`";
    }

    letters() {
    for letter in {a..z}; do
    check_letter $letter
    check_letter `echo $letter | tr a-z A-Z`
    done
    }