-bash-3.00# cat aa.txt "test is file" linux is long live!!! i am a cuer s.n is pig!!! i love pig ---> gg -bash-3.00# awk '{gsub(/,/," & ")}{for(i=1;i<=NF;i++)if($i!~/^[^a-z]/)printf toupper(substr($i,0,1))substr($i,2,length($i))" ";else printf substr($i,0,1)toupper(substr($i,2,1))substr($i,3,length($i))" ";printf "\n"}' aa.txt "Test Is File" Linux Is Long Live!!! I Am A Cuer S.n Is Pig!!! I Love Pig ---> Gg -bash-3.00#