https://github.com/zserge/yu
Yu is a tee-like tool, but with rotation feature like logrotate
https://github.com/zserge/yu
Last synced: about 1 year ago
JSON representation
Yu is a tee-like tool, but with rotation feature like logrotate
- Host: GitHub
- URL: https://github.com/zserge/yu
- Owner: zserge
- License: mit
- Created: 2015-07-31T14:45:57.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-31T16:08:49.000Z (almost 11 years ago)
- Last Synced: 2025-03-25T03:23:21.792Z (about 1 year ago)
- Language: C
- Size: 133 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ю - it's like ⊢ but with file rotation
Yu (named after a cyrillic letter) is a tee-like tool that takes data from
stdin, prints it to stdout and also keeps it in the rotated files.
It's useful for simple log rotation in embedded environment.
Usage:
-r N - how many rotated files to keep
-n N - maximum file size in bytes
Example:
# Rotate dmesg output in 4 files, 1MB each
cat /proc/kmsg | yu -r 4 -n 1048576
Licensed under MIT license.