https://github.com/jcaesar/pee
/P/ut some bytes into a file
https://github.com/jcaesar/pee
Last synced: 10 months ago
JSON representation
/P/ut some bytes into a file
- Host: GitHub
- URL: https://github.com/jcaesar/pee
- Owner: jcaesar
- Created: 2021-08-10T00:01:12.000Z (over 4 years ago)
- Default Branch: mein
- Last Pushed: 2021-08-12T15:09:52.000Z (over 4 years ago)
- Last Synced: 2025-02-09T12:43:07.770Z (12 months ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pee
> *P*ut bytes into a file. A bit like tee, but without the output.
Mostly made for [webassembly.sh](https://webassembly.sh/?run-command=pee%20-h).
Can also be useful if you don't like constructs like
```bash
echo 42 | sudo tee /proc/sys/... >/dev/null
# or
sudo bash -c 'echo 42 >/proc/sys/...'
```
Example:
```bash
echo please sit down when you | sudo pee /dev/kmsg
sudo pee /dev/kmsg '<5>'Pee: from arguments, with proper tag
sudo dmesg -T | tail
```