10-17-2011
2,
0
Join Date: Oct 2011
Last Activity: 17 October 2011, 10:44 AM EDT
Posts: 2
Thanks Given: 0
Thanked 0 Times in 0 Posts
making the first character of word to uppercase using awk and sed
I want to make the first character of some words to be uppercase. I have a file like the one below.
uid,givenname,sn,cn,mail,telephonenumber
mattj,matt,johnson,matt johnson,mattj@gmail.com
markv,mark,vennet,matt s vennet,markv@gmail.com
mikea,mike,austi,mike austin,mike@gmail.com
I want to make the 2nd,3rd and 4th fields to start with upper case. Second entry has a middle initial which has to made an uppercase too. Entries from the second row should be modified till the end of the file for all the entries. What would be the easiest way to do this. expected result is.
uid,givenname,sn,cn,mail,telephonenumber
mattj,Matt,Johnson,Matt Johnson,mattj@gmail.com
markv,Mark,Vennet,Matt S Vennet,markv@gmail.com
mikea,Mike,Austi,Mike Austin,mike@gmail.com
Thanks
Matt
Last edited by matt12; 10-17-2011 at 10:14 AM..