Afficher un message
Vieux 23/08/2006, 02h06   #6
Xicheng Jia
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: first letter of the word in CAPS

aarcee wrote:
> Hello all ,
>
> I need to display a word with the first character in CAPS .
>
> that is , split then the display should be Split


GNU sed:

bash:~$ echo 'split' | sed 's/./\u&/'
Split
bash:~$ echo 'cygwin split' | sed 's/\([^ ]\+\)/\u\1/g'
Cygwin Split

--
XC

  Réponse avec citation
 
Page generated in 0,05002 seconds with 9 queries