Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save p53ud0k0d3/7a613c72bd2a350ad476 to your computer and use it in GitHub Desktop.
Save p53ud0k0d3/7a613c72bd2a350ad476 to your computer and use it in GitHub Desktop.
Remove the first capital letter from each element
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