I\'m an awk newbie, so please bear with me.
The goal is to change the case of a string such that the first letter of every word is uppercase and the remaining letters ar
My solution will be to get the first part of the sub with a first substr insted of your regex :
sub
substr
echo 'ABCD EFGH IJKL MNOP' | awk '{for (i=1 ; i <= NF ; i++) {sub(substr($i,2),tolower(substr($i,2)),$i)} print }' Abcd Efgh Ijkl Mnop