folks, i have a string like
AxxBCyyyDEFzzLMN
I want to replace all x and y and z with _ so that the output is
A_BC_DEF_LMN
How to do that?
I know a series of
echo "$string" | tr 'x' '_' | tr 'y' '_'
will work, but I want to do taht in one go, without using pipes
EDIT: The following worked
echo "$string" | tr '[xyz]' '_'
thanks in advance