fork download
  1. #!/bin/bash
  2. s='I wish them a Merry Christmas'
  3. find='e'
  4. replace='E'
  5. tr "$find" "$replace" <<< "$s"
  6. awk -v f="$find" -v r="$replace" '{gsub(f, r)}1' <<< "$s"
  7. sed 'y/e/E/' <<< "$s"
  8.  
Success #stdin #stdout 0.01s 5540KB
stdin
Standard input is empty
stdout
I wish thEm a MErry Christmas
I wish thEm a MErry Christmas
I wish thEm a MErry Christmas