pee package icon
liftm/pee

wasi

Public
wasmer run liftm/pee

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/kmesg convenience arguments
sudo dmesg -T | tail

Put bytes into a file


Github