3 stable releases

1.0.2 Aug 28, 2024

#1787 in Command line utilities

Download history 239/week @ 2024-08-23 65/week @ 2024-08-30 32/week @ 2024-09-13 16/week @ 2024-09-20 6/week @ 2024-09-27 1/week @ 2024-10-04

55 downloads per month

BSD-3-Clause

6KB
74 lines

kodumaro-trim

Kodumaro Trim aims to be a shell in-pipe tool for removing leading and trailing characters from strings.

Installation guide

cargo install kodumaro-trim

Usage

Usage: ktrim [OPTIONS] [FILE]

Arguments:
  [FILE]  input file, defaults to STDIN

Options:
  -l, --left         trim only leading
  -r, --right        trim only trailing
  -c, --char <CHAR>  character to be removed, defaults to whitespaces
  -h, --help         Print help

Examples

echo '   hello world   ' | ktrim

License: BSD-3-Clause


lib.rs:

Kodumaro Trim aims to be a shell in-pipe tool for removing leading and trailing characters from strings.

Installation guide

cargo install kodumaro-trim

Usage

Usage: trim [OPTIONS] [FILE]

Arguments:
  [FILE]  input file, defaults to STDIN

Options:
  -l, --left         trim only leading
  -r, --right        trim only trailing
  -c, --char <CHAR>  character to be removed, defaults to whitespaces
  -h, --help         Print help

Examples

echo '   hello world   ' | trim

Dependencies

~4–11MB
~107K SLoC