Sample Header Ad - 728x90

tee stdout to stderr?

24 votes
3 answers
6353 views
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
Asked by Roger Lipscombe (1780 rep)
Apr 30, 2014, 09:10 AM
Last activity: Aug 11, 2024, 09:13 AM