Crates.io | pee |
lib.rs | pee |
version | 0.1.2 |
source | src |
created_at | 2021-08-10 15:55:57.412624 |
updated_at | 2021-08-12 14:01:55.191299 |
description | Put bytes into a file |
homepage | |
repository | |
max_upload_size | |
id | 434331 |
size | 14,608 |
Put bytes into a file. A bit like tee, but without the output.
Mostly made for webassembly.sh.
Can also be useful if you don't like constructs like
echo 42 | sudo tee /proc/sys/... >/dev/null
# or
sudo bash -c 'echo 42 >/proc/sys/...'
Example:
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