3 stable releases
1.0.2 | Aug 28, 2024 |
---|
#2344 in Command line utilities
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–10MB
~106K SLoC