Strips trailing new line(s) from input
chomp is a small, standalone utility program that removes end-of-line sequence from lines in its input.
Detailed instructions - via CMake, via bundling, via custom makefile parameters - are provided in the accompanying INSTALL.md file.
The project creates a single executable program, chomp.
$ pwd
/Users/.../sistools/chomp
$ pwd | chomp
/Users/.../sistools/chomp%
$
Defect reports, feature requests, and pull requests are welcome on the cstring GitHub page.
chomp depends on:
For unit-testing, chomp depends additionally on:
- Catch2 - for the unit-test specification and results assessment;
- xTests - for utility components (such as
xtests::cpp::util::temp_file
);
Other (similar) project include:
chomp is released under the 3-clause BSD license. See LICENSE for details.