upper- to lower-case using sed

前端 未结 7 1042
别那么骄傲
别那么骄傲 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:04

    Shortest I can come up with:

    echo getFoo_Bar | sed 's/_./\L&/'
    

提交回复
热议问题