Re: upper/lower case

"Daniel Goldman [email protected] [sed-users]" <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
If helpful, here is Thierry's solution #1, for one column (the data you 
sent), the sed script just formatted a little differently.

$ cat input.txt
PAUL
JEAN-CHARLES
MARIE ODILE

$ sed -r "s/(.*)/\L\1/; s/\<(.)/\u\1/g" input.txt
Paul
Jean-Charles
Marie Odile

For the case with multiple columns, if Thierry's solution #2 does not 
work, you might send an input file and desired output.

Daniel

On 12/9/2015 2:33 AM, MOKRANI Rachid [email protected] [sed-users] 
wrote:
> Hi,
>
> I own a file with multiple columns, and in one column there are names which are all in uppercase.
>
> Example :
> PAUL
> JEAN-CHARLES
> MARIE ODILE
> ...
> ....
>
> I would like to get a result like.
> Paul
> Jean-Charles
> Marie Odile
>
> How to do that very simply with sed/awk easy to get this result?
>
>
> Many thanks for your suggestion.
> Regards.
> __________________________
> Avant d'imprimer, pensez à l'environnement ! Please consider the environment before printing !
> Ce message et toutes ses pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. IFP Energies nouvelles décline toute responsabilité au titre de ce message. This message and any attachments are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. IFP Energies nouvelles should not be liable for this message.
> __________________________
>
>
> ------------------------------------
> Posted by: MOKRANI Rachid <[email protected]>
> ------------------------------------
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.