Popularity
0.9
Declining
Activity
0.0
Stable
0
1
0

Monthly Downloads: 9
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Text    
Latest version: v0.1.0.0

trim alternatives and similar packages

Based on the "Text" category.
Alternatively, view trim alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of trim or a related project?

Add another 'Text' Package

README

trim

Build Status hackage release

trim is a simple unix-philosophy tool to trim trailing whitespace from a file. It is designed to be simple and transparent. It takes input from stdin and output from stdout, for easy piping.

Usage

trim [-N|--newlines] [-o|--output ARG] [FILE]

trim with no flags takes input from stdin and prints to stdout. It trims trailing whitespace from each line, but does not trim additional newlines.

  • [FILE] The file to read from. If FILE is a single hyphen - or unspecified, read from standard input.

  • --output, -o [FILENAME] write to the given filename instead of stdout

  • --newlines, -N Trim trailing newlines as well

Installation

You can easily install using cabal as follows:

cabal v2-update && cabal v2-install trim

Building

Build with cabal v2-build

Testing

Test with ./test.sh