Skip to content

Instantly share code, notes, and snippets.

@mikesorae
Last active December 24, 2015 13:39
Show Gist options
  • Save mikesorae/6807238 to your computer and use it in GitHub Desktop.
Save mikesorae/6807238 to your computer and use it in GitHub Desktop.
"internationalization" -> "i18n"
echo "internationalization" | ruby -lne 'p "#{$_[0]}#{$_.size-2}#{$_[-1,1]}"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment