tee

Lees van stdin en schrijf naar stdout en bestanden (of commando’s). Meer informatie: https://www.gnu.org/software/coreutils/manual/html_node/tee-invocation.html.

echo "voorbeeld" | tee {{pad/naar/bestand}}

echo "voorbeeld" | tee {{[-a|--append]}} {{pad/naar/bestand}}

echo "voorbeeld" | tee {{/dev/tty}} | {{xargs printf "[%s]"}}

echo "voorbeeld" | tee >(xargs mkdir) >(wc -c)