1const upperCase = function(names){
2 const toLower = names.toLowerCase().split(' ');
3 const namesUpper = [];
4 for(const wordName of toLower){
5 namesUpper.push(wordName[0].toUpperCase() + wordName.slice(1));
6 }
7 return namesUpper.join(' ');
8}
1echo example | awk -F 'd' '{ print toupper($1)}'
2EXAMPLE #Example first uppercased outputed