I'd like to send stdout from one process to the stdin of another process, but also to the console. Sending stdout to stdout+stderr, for instance.
For example, I've got git edit
aliased to the following:
git status --short | cut -b4- | xargs gvim --remote
I'd like the list of filenames to be sent to the screen as well as to xargs
.
So, is there a tee
-like utility that'll do this? So that I can do something like:
git status --short | \
cut -b4- | almost-but-not-quite-entirely-unlike-tee | \
xargs gvim --remote