Yoko Yoko - 28 days ago 13
Linux Question

How to convert inside some files upper Charater in lower character in linux

I am under ubuntu and I would know how is possible to convert inside a directory and sub directory all the UPPER caracter in lower caracter.

Tk

ex

HEADING_TITLE = Administration
TABLE_HEADING_ADMINISTRATORS = Pseudonymes


become

heading_title = Administration
table_heading_administrators = Pseudonymes

Answer

To lower-case the first sequence of non-blank characters, with sed:

sed 's/[^[:blank:]]\+/\L&/' file
heading_title = Administration
table_heading_administrators = Pseudonymes 
Comments