Sunday, June 21, 2009

To upper case every char after space

awk '{ for ( i=1; i <= NF; i++)
{ sub(".", substr(toupper($i),1,1) , $i) }
print }' infile

No comments:

Post a Comment