Partline
I originally made this to remove comments from an input file.
This was made fairly quickly, it may not be following best practices and may have some bugs.
Installation
gem install 'partline'
Usage
$ partline path/to/file "character(s) to part lines on"
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/jameslwren/partline.
License
The gem is available as open source under the terms of the MIT License.