Strips leading whitespace from all input lines
lstrip is a small, standalone utility program that strips leading 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, lstrip.
$ echo "abc" | lstrip
abc
$ echo " def" | lstrip
def
$ echo -e "abc\n def\n\tghi" | lstrip
abc
def
ghi
Defect reports, feature requests, and pull requests are welcome on the cstring GitHub page.
lstrip depends on:
For unit-testing, lstrip 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:
lstrip is released under the 3-clause BSD license. See LICENSE for details.