https://github.com/nocd5/ttee
tee command with time
https://github.com/nocd5/ttee
golang tee
Last synced: about 2 months ago
JSON representation
tee command with time
- Host: GitHub
- URL: https://github.com/nocd5/ttee
- Owner: nocd5
- License: mit
- Created: 2020-09-30T14:38:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-02T16:30:26.000Z (about 5 years ago)
- Last Synced: 2025-07-25T08:55:17.062Z (3 months ago)
- Topics: golang, tee
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ttee【tiːtiː】

tee command with time
# Install
```
go get github.com/nocd5/ttee
```# Usage
```bash
$ ttee -h
Usage:
ttee [OPTION]... [FILE]...Application Options:
-a, --append Append to the given FILEs, do not overwrite
-i, --ignore-interrupts Ignore interrupt signals
-c, --clock-time Display clock timeHelp Options:
-h, --help Show this help message$ seq 3 | xargs -i sh -c "echo sleep {} sec ; sleep {} ; echo done" | ttee foo.log
[00:00:00.000] sleep 1 sec
[00:00:00.993] done
[00:00:00.996] sleep 2 sec
[00:00:02.998] done
[00:00:03.001] sleep 3 sec
[00:00:06.003] done
```