kodumaro-trim

Crates.iokodumaro-trim
lib.rskodumaro-trim
version1.0.3
created_at2024-08-28 15:09:32.854071+00
updated_at2025-06-19 17:22:07.944067+00
descriptionCommand line tool to trim strings.
homepagehttps://crates.io/crates/kodumaro-trim
repositoryhttps://github.com/cacilhas/microcli/tree/master/kodumaro-trim
max_upload_size
id1354759
size19,221
Montegasppα ℭacilhας (cacilhas)

documentation

README

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

Commit count: 182

cargo fmt