Skip to main content
2 of 2
bash caveat
canupseq
  • 2k
  • 1
  • 5
  • 21

For bash you can use sed and tr:

$ echo "foo-bar" | sed -E "s/[[:alnum:]]+/\u&/g" | tr '-' ' ' 
Foo Bar
canupseq
  • 2k
  • 1
  • 5
  • 21