I have three types of strings that I'd like to capitalize in a bash script. I figured sed/awk would be my best bet, but I'm not sure. What's the best way given the following requirements?
single word
e.g.taco -> Taco
multiple words separated by hyphens
e.g.my-fish-tacos -> My-Fish-Tacos
multiple words separated by underscores
e.g.my_fish_tacos -> My_Fish_Tacos