trim: A command-line tool for trimming whitespace

[ bsd3, library, program, text ] [ Propose Tags ]

trim is a simple command-line tool for removing unwanted whitespace from files


[Skip to Readme]
Versions [faq] 0.1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.12.0.0 && <4.13), directory (==1.3.*), optparse-applicative (==0.14.*) [details]
License BSD-3-Clause
Author Andrew Lee
Maintainer andrewl@mbda.fun
Category Text
Home page https://github.com/ndrewtl/trim
Source repo head: git clone https://github.com/ndrewtl/trim
Uploaded by ndrewtl at Wed Jan 30 22:42:35 UTC 2019
Distributions NixOS:0.1.0.0
Executables trim
Downloads 85 total (15 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-01-30 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for trim-0.1.0.0

[back to package description]

trim

Build Status

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

Building

Build with cabal v2-build