Rmline
I originally made this to remove comments from an input file. It could probably remove anything passed to it but have not tested it.
This was made fairly quickly, it may not be following best practices.
Installation
gem install 'rmline'
Usage
$ rmline path/to/file "character(s) to part lines on"
Development
I plan on adding some form of error checking.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/jameslwren/rmline.
License
The gem is available as open source under the terms of the MIT License.