awk first upper code example
Example 1: awk first upper
echo example | awk '{$1=toupper(substr($1,0,1))substr($1,2)}1'
Example #Example first upppercased outputed
Example 2: awk convert first character to lowercase
echo EXAMPLE | awk '{$1=tolower(substr($1,0,1))substr($1,2)}1'
eXAMLPLE #Example first lowercased outputed