pee

Crates.iopee
lib.rspee
version0.1.2
sourcesrc
created_at2021-08-10 15:55:57.412624
updated_at2021-08-12 14:01:55.191299
descriptionPut bytes into a file
homepage
repository
max_upload_size
id434331
size14,608
(jcaesar)

documentation

README

Pee

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
Commit count: 0

cargo fmt