You can do this with tee
and process substitution.
program1 | tee >(program2) >(program3)
The output of program1
will be piped to whatever is inside ( )
, in this case program2
and program3
.
More Related Contents:
- grep -P no longer works. How can I rewrite my searches?
- C Minishell Adding Pipelines
- Command line command to auto-kill a command after a certain amount of time
- Setting PATH environment variable in OSX permanently
- How can I send the stdout of one process to multiple processes using (preferably unnamed) pipes in Unix (or Windows)?
- How to run a shell script in OS X by double-clicking?
- Replace comma with newline in sed on MacOS?
- Why does cURL return error “(23) Failed writing body”?
- How to run a shell script on a Unix console or Mac terminal?
- How can I clear previous output in Terminal in Mac OS X?
- Is it OK to use the same input file as output of a piped command?
- calling conda source activate from bash script
- How to run mvim (MacVim) from Terminal?
- How do I create a Bash alias?
- Where to place $PATH variable assertions in zsh?
- Why isn’t DYLD_LIBRARY_PATH being propagated here?
- What is the Unix command to create a hardlink to a directory in OS X?
- Is there any graphical “sudo” for Mac OS X?
- How do I set a task to run every so often?
- Where are core dumps written on Mac?
- How to get the PID of a process by giving the process name in Mac OS X ?
- OSX: check if the screen is locked
- Why doesn’t “sort file1 > file1” work?
- How do you run a script on login in *nix?
- Run a script only at shutdown (not log off or restart) on Mac OS X
- What does $@ mean in a shell script?
- Is there any simple way to benchmark Python script?
- Why is this bash prompt acting strangely/disappearing, and how do I fix it (OS X)?
- OpenSSL crate fails compilation on Mac OS X 10.11
- How can I convert tabs to spaces in every file of a directory?