upper- to lower-case using sed

前端 未结 7 1066
别那么骄傲
别那么骄傲 2020-12-05 07:21

I\'d like to change the following patterns:

getFoo_Bar

to:

getFoo_bar

(note the lower b)

Knowing

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 08:08

    If you want to write everything in lowercase just after underscore, than this would work for you:

    echo getFoo_Bar | gawk -F_ '{print tolower($2)}'
    

提交回复
热议问题