Skip to content

sistools/rstrip

Repository files navigation

rstrip

Strips trailing whitespace from all input lines

Table of Contents

  1. Introduction
  2. Installation
  3. Components
  4. Examples
  5. Project Information

Introduction

rstrip is a small, standalone utility program that removes trailing 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, rstrip.

Examples

$ 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*

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

rstrip depends on:

Tests-only Dependencies

For unit-testing, rstrip depends additionally on:

Related projects

Other (similar) project include:

License

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

About

Strips trailing whitespace from all input lines

Resources

License

Stars

Watchers

Forks

Packages

No packages published