fork download
  1. #!/bin/bash
  2. s='yes said holmes answering the look rather than the words it is
  3. so i know all about mccarthy
  4. the old man sank his face in his hands god help me he cried but
  5. i would not have let the young man come to harm i give you my word
  6. that i would have spoken out if it went against him at the assizes
  7. i am glad to hear you say so said holmes gravely
  8. i would have spoken now had it not been for my dear girl it would
  9. break her heartit will break her heart when she hears that i am
  10. arrested'
  11. sed -E 's/(\s[a-z]\s)/ /g' <<< "$s"
Success #stdin #stdout 0s 4512KB
stdin
Standard input is empty
stdout
yes said holmes answering the look rather than the words it is
so know all about mccarthy
the old man sank his face in his hands god help me he cried but
i would not have let the young man come to harm give you my word
that would have spoken out if it went against him at the assizes
i am glad to hear you say so said holmes gravely
i would have spoken now had it not been for my dear girl it would
break her heartit will break her heart when she hears that am
arrested