#!/bin/sh # NAME # # letter_freq.sh - analyze letter frequency in a string # # SYNOPSIS # # letter_freq.sh -f filename # letter_freq.sh "string to analyze" # # INSTALLATION # # Just copy this into a file called letter_freq.sh, and then: # # $ chmod +x ./letter_freq.sh # # CAVEATS # # Shell is terrible and Brennen is terrible at shell, so this # is doubly likely to contain traps for the unwary. # # AUTHORS # # https://mspsocial.net/@earthtopus # https://mastodon.social/@brennen # A function for squawking at the user with some helptext: print_usage () { cat <