Skip to content

sistools/lstrip

Repository files navigation

lstrip

Strips leading whitespace from all input lines

Table of Contents

Introduction

lstrip is a small, standalone utility program that strips leading whitespace from lines in its input.

Installation

Detailed instructions - via CMake, via bundling, via custom makefile parameters - are provided in the accompanying INSTALL.md file.

Components

The project creates a single executable program, lstrip.

Examples

$ echo "abc" | lstrip
abc
$ echo "  def" | lstrip
def
$ echo -e "abc\n  def\n\tghi" | lstrip
abc
def
ghi

Project Information

Where to get help

GitHub Page

Contribution guidelines

Defect reports, feature requests, and pull requests are welcome on the cstring GitHub page.

Dependencies

lstrip depends on:

Tests-only Dependencies

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);

Related projects

Other (similar) project include:

License

lstrip is released under the 3-clause BSD license. See LICENSE for details.

About

Strips leading whitespace from all input lines

Resources

License

Stars

Watchers

Forks

Packages

No packages published