[Solved] how do I convert the first letter of every word in a list from upper case to lower case? [duplicate]


If you have gnu sed then use:

sed -i 's/[A-Z]/\L&/' file
  • [A-Z] will match first upper case letter
  • & is back-reference of matched string by pattern (in this case single upper case letter)
  • \L converts given back-reference to lowercase

solved how do I convert the first letter of every word in a list from upper case to lower case? [duplicate]