Re: upper/lower case

"Thierry Blanc [email protected] [sed-users]" <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
sorry, didn't read the question before ..:-[

if there is always the same number of column separator per line and this
number is known, then use something like that.
Suppose there are 5 columns:

sed 's|\t|\n|g' <yourfile> |sed -r 'n;n;n;s|[A-Z]+|\L\u\0|g;n' |sed
'N;N;N;N;s|\n|\t|g'

  * replace tabs with newline
  * skip first three lines, i.e. first three columns
  * lowercase 4th line (4th column)
  * skip next line (i.e. 5th column)
  * restore columns: replace newlines with tabs





On 09/12/15 11:33, 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]>
> ------------------------------------
>



[Non-text portions of this message have been removed]
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.