sed one-liner to convert all uppercase to lowercase?

前端 未结 8 2165
慢半拍i
慢半拍i 2020-11-28 03:50

I have a textfile in which some words are printed in ALL CAPS. I want to be able to just convert everything in the textfile to lowercase, using sed. That means

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 04:18

    echo  "Hello  MY name is SUJIT "  | sed 's/./\L&/g'
    

    Output:

    hello  my name is sujit
    

提交回复
热议问题