sed replace brackets with underscore -


i sed beginner , trying replace on following string:

a_b0_24[0][1] should changed a_b0_24_0__1_

there numbers within brackets. text before brackets numbers, alphabets or underscore.

thanks

check out:

kent$  echo 'a_b0_24[0][1]'|sed 's/[][]/_/g' a_b0_24_0__1_ 

Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -