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
You have to add another \ character before \B
echo 'ABCD EFGH IJKL MNOP' | awk '{for (i=1;i <= NF;i++) {sub("\\B[A-Za-z]+",substr(tolower($i),2),$i)} print}'
With just \B awk gave me this warning:
awk: cmd. line:1: warning: escape sequence \B' treated as plainB'
\B' treated as plain