#!/bin/bashs='a.key.one-example=a_value_onea.key.two-example=a_value_two'sed ':a;s/^\([^=]*\)[.-]\([^=]*\)/\U\1_\2/g;ta' <<< "$s"
Standard input is empty
A_KEY_ONE_EXAMPLE=a_value_one A_KEY_TWO_EXAMPLE=a_value_two
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!