Re: Bash script piping question
- From: noi <noi@xxxxxxxx>
- Date: Mon, 19 Dec 2005 16:53:57 GMT
On Sun, 18 Dec 2005 20:31:46 -0500, Dan Ganek wrote this:
> noi wrote:
>>
>> I'd like to pass output from a command to stdout and a pipe.
>>
>> Like in $ cat test.file | if grep word ; then do; but I'd like to see
>> all of the output from the cat command as well as pass that output to
>> the grep test.
>>
>> Anyone know how to do that?
>>
>> TIA
>
> man tee
Nope doesn't work. An output file is needed for the tee command to work.
So I'd have to cat the output file instead of seeing the stdout.
.
- Follow-Ups:
- Re: Bash script piping question
- From: Peter T. Breuer
- Re: Bash script piping question
- References:
- Bash script piping question
- From: noi
- Re: Bash script piping question
- From: Dan Ganek
- Bash script piping question
- Prev by Date: Re: cron not working
- Next by Date: Re: cups and usb dev problems with a printer
- Previous by thread: Re: Bash script piping question
- Next by thread: Re: Bash script piping question
- Index(es):
Relevant Pages
|