fork(2) download
  1. #!/bin/bash
  2. s='double double toil and trouble
  3. fire burn and cauldron bubble bubble
  4. tomorrow and tomorrow and tomorrow
  5. creeps in this this petty pace from day toto day'
  6. sed 's/\b\([a-z]\+\)\s\1\b/\1/g' <<< "$s"
Success #stdin #stdout 0s 4436KB
stdin
Standard input is empty
stdout
double toil and trouble 
fire burn and cauldron bubble 
tomorrow and tomorrow and tomorrow 
creeps in this petty pace from day toto day