Created
November 17, 2020 17:46
-
-
Save sschwartzman/3c38009262a17979c0a6d824dcf45e69 to your computer and use it in GitHub Desktop.
Numberizer - Turns words into numeronyms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wordinput=$1 | |
wordnumber=$(expr ${#wordinput} - 2) | |
echo "${wordinput:0:1}${wordnumber}${wordinput: -1}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment