#!/bin/bashs='ke-y_0-1="foo"key_two="bar"key_03-three="baz-jazz-mazz"key-="rax_foo"key-05-five="craz-"'sed ':a; s/^\([^=]*\)-/\1_/;ta' <<< "$s"
Standard input is empty
ke_y_0_1="foo" key_two="bar" key_03_three="baz-jazz-mazz" key_="rax_foo" key_05_five="craz-"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!