[SOLUTION] Text Munger

It expects stuff to be piped to it.

~> cat file.txt | ./76.rb

Took all of 10 minutes to write…

First version was 5 lines, but expanded it to 15 to add some handling of
different situations.

Kind Regards,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs