Sha256: eed7537e2c43b661e7384b61a9c0e5668280a3b8b95ce62345a0bb9f3985a88b
Contents?: true
Size: 325 Bytes
Versions: 96
Compression:
Stored size: 325 Bytes
Contents
#!/usr/bin/env bash if [ "$#" -ne 1 ]; then echo 'Usage: $0 "<phrase1>"' >&2 exit 1 fi phrase=`echo $1 | tr '-' ' '` set -f -- junk $phrase shift for word; do initial="$(echo $word | head -c 1 | tr '[:lower:]' '[:upper:]')" acronym+=$initial #echo "[$word] [$initial] [$acronym]" done echo $acronym exit 0
Version data entries
96 entries across 96 versions & 1 rubygems