Created
March 19, 2015 14:35
-
-
Save p53ud0k0d3/7a613c72bd2a350ad476 to your computer and use it in GitHub Desktop.
Remove the first capital letter from each element
This file contains 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
i=1 | |
while read word | |
do | |
words[i]=$word | |
i=$(( $i + 1 )) | |
done | |
echo ${words[@]/[A-Z]/.} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment