I want to convert my_long_variable to myLongVariable in sed.This works:echo my_long_variable | sed -r 's/(^|_)([a-z])/\U\2/g' | sed -r 's/^(.)/\l\1/g'Is there a more elegant way to do that with sed?
Transform snake_case to camelCase with sed
regex;sed