4 stable releases

1.0.3 Jun 19, 2025
1.0.2 Aug 28, 2024

#763 in Command-line interface

Download history 109/week @ 2025-06-15 28/week @ 2025-06-22 2/week @ 2025-06-29

213 downloads per month

BSD-3-Clause

8KB
114 lines

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

kodumaro-trim

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

Installation guide

From Crates.io (release)

 cargo install kodumaro-trim
 upx --best --lzma ~/.cargo/bin/trim

From Codeberg (nightly)

 git clone https://codeberg.org/cacilhas/microcli.git
 cd microcli
 cargo install --path=trim
 upx --best --lzma ~/.cargo/bin/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

License: BSD-3-Clause

Dependencies

~4–6MB
~103K SLoC