https://github.com/msantos/tscat-rs
tscat: timestamp stdin to stdout/stderr
https://github.com/msantos/tscat-rs
stdio timestamp
Last synced: 2 months ago
JSON representation
tscat: timestamp stdin to stdout/stderr
- Host: GitHub
- URL: https://github.com/msantos/tscat-rs
- Owner: msantos
- Created: 2023-01-04T11:50:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-04T11:52:01.000Z (over 2 years ago)
- Last Synced: 2025-02-13T05:30:14.805Z (4 months ago)
- Topics: stdio, timestamp
- Language: Rust
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SYNOPSIS
tscat *option* [*label*]
# DESCRIPTION
tscat: timestamp stdin to stdout/stderr
tscat timestamps standard input and writes the output to standard output,
standard error or both.# EXAMPLES
$ echo test | tscat
2022/12/26 10:54:23 test$ echo test | tscat foo
2022/12/26 10:54:37 foo test# duplicate output to stdout/stderr
$ echo test | tscat --output=3 foo
2022/12/26 10:55:06 foo test
2022/12/26 10:55:06 foo test$ echo test | tscat --output=3 foo > /dev/null
2022/12/26 10:55:06 foo test$ echo test | tscat --output=3 foo 2> /dev/null
2022/12/26 10:55:06 foo test# Build
cargo build
# OPTIONS
--output *1|2|3*
: stdout=1, stderr=2, both=3 [default: 1]--format *string*
: timestamp format (see strftime(3)) [default: %F%T%z]-h, --help
: usage summary# ALTERNATIVES
* [tscat](https://github.com/msantos/tscat)