fork(1) download
  1. #!/bin/bash
  2. s=" hello
  3. world
  4. title: this is-the_test string with number 2, to-test CAMEL String
  5. end! "
  6. grep -o 'title:.*' <<< "$s" | cut -f2 -d: | sed -r 's/([^[:alnum:]]+)([0-9a-zA-Z])/\U\2/g' | tr -d ' '
  7. sed -En '/.*title: *(.*[[:alnum:]]).*/{s//\1/;s/([^[:alnum:]]+|^)([0-9a-zA-Z])/\U\2/gp}' <<< "$s"
  8.  
  9. sed -En '/.*title: *(.*[[:alnum:]]).*/{s//\1/;s/([^[:alnum:]]+|^)([0-9a-zA-Z])/\U\2/gp}' \
  10. <<< "title:this is, a test, , ,&"
Success #stdin #stdout 0s 4488KB
stdin
Standard input is empty
stdout
ThisIsTheTestStringWithNumber2ToTestCAMELString
ThisIsTheTestStringWithNumber2ToTestCAMELString
ThisIsATest