Crates.io | ctee |
lib.rs | ctee |
version | 0.2.0 |
source | src |
created_at | 2022-02-01 21:13:37.763438 |
updated_at | 2023-07-22 11:08:07.515601 |
description | Unix's tee with stripping of ANSI-colors |
homepage | |
repository | https://github.com/Lipen/ctee |
max_upload_size | |
id | 525397 |
size | 15,179 |
Rust implementation of Unix's
tee
with stripping of ANSI colors.
Use the crate published on crates.io:
cargo install --locked ctee
OR manually clone and install the latest version:
git clone https://github.com/Lipen/ctee
cd ctee
cargo install --path .
$ ctee --help
Read from STDIN and write to STDOUT (unchanged) and FILES (without ANSI-colors)
USAGE:
ctee [OPTIONS] [FILES]...
ARGS:
<FILES>... Output files
OPTIONS:
-a, --append Append to the given files instead of overwriting
--bs <BUFFER_SIZE> Buffer size [default: 8192]
-h, --help Print help information
--strip-ansi <STRIP_ANSI> Strip ANSI color codes when writing to files [default: true]
-V, --version Print version information
EXAMPLES:
<command-with-colorized-output> | ctee my.log