Re: fichier csv tout saisi en majuscules
Le Sun, 21 Aug 2016 17:01:43 +0200,
Bernard Schoenacker <bernard.schoenacker@free.fr> a écrit :
> Le Sun, 21 Aug 2016 16:57:10 +0200,
> steve <dlist@bluewin.ch> a écrit :
>
> > autre solution:
> >
> > cat maj.txt | sed 's/.*/\L&/' | sed 's/^.\| [a-z]/\U&/g'
> >
>
> bonjour,
>
>
> tous les exemples sont là :
>
> #http://stackoverflow.com/questions/4569825/sed-one-liner-to-convert-all-uppercase-to-lowercase
>
> mais je fais comment pour avoir la première lettre en
> "Uppercase" (majuscules) ?
>
>
>
> slt
> bernard
>
bonjour,
j'ai trouvé en cherchant bien ...
sed -i 's/\([a-z]\)\([a-zA-Z0-9]*\)/\u\1\2/g' fichier.txt
solution trouvé là :
# http://www.unix.com/shell-programming-and-scripting/38049-only-uppercase-first-character.html
slt
bernard
Reply to: