Strips trailing whitespace from all input lines
rstrip is a small, standalone utility program that removes trailing whitespace 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, rstrip.
$ cd ~
$ echo -e "abc\n def\nghi \njkl\t" | sed -e 's/$/*/'
abc*
def*
ghi *
jkl *
$ echo -e "abc\n def\nghi \njkl\t" | rstrip | sed -e 's/$/*/'
abc*
def*
ghi*
jkl*
Defect reports, feature requests, and pull requests are welcome on the cstring GitHub page.
rstrip depends on:
For unit-testing, rstrip depends additionally on:
Other (similar) project include:
rstrip is released under the 3-clause BSD license. See LICENSE for details.