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
Post a Comment