Re: Bash script piping question
- From: Dan Espen <daneNO@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 19 Dec 2005 17:03:45 -0500
noi <noi@xxxxxxxx> writes:
> On Mon, 19 Dec 2005 17:59:13 +0100, Peter T. Breuer wrote this:
>
>> noi <noi@xxxxxxxx> wrote:
>>> On Sun, 18 Dec 2005 20:31:46 -0500, Dan Ganek wrote this:
>>>>> 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.
>>>> man tee
>>
>>> Nope doesn't work.
>>
>> It works fine. Learn.
>>
>>> An output file is needed for the tee command to work.
>>
>> Everything in unix is a file, so your statement makes no sense.
>>
>>> So I'd have to cat the output file instead of seeing the stdout.
>>
>> No you wouldn't. Try tee /dev/tty for a start! And please stop saying
>> "nope" to people who are trying to repair gaps in your knowledge - the
>> reason that you are _asking_ is because of the gap!
>>
>> Peter
>
> Ahhhh thanks, I think I learn from the NGs.
>
> I tried
> $ cat test.file | man tee | if grep word ; then echo "doesn't work"; fi
>
> and no output was displayed from the cat command
Just for your education, when someone says "man x",
they are trying to tell you to go to a command line
and read the man page for x.
If you had typed in "man tee" by itself,
you would have gotten the documentation for the tee command.
.
- Follow-Ups:
- Re: Bash script piping question
- From: Robert Hull
- Re: Bash script piping question
- References:
- Bash script piping question
- From: noi
- Re: Bash script piping question
- From: Dan Ganek
- Re: Bash script piping question
- From: noi
- Re: Bash script piping question
- From: Peter T. Breuer
- Re: Bash script piping question
- From: noi
- Bash script piping question
- Prev by Date: Re: glslideshow sequence possible?
- Next by Date: Re: How to configure Suspend in Ubuntu Console?
- Previous by thread: Re: Bash script piping question
- Next by thread: Re: Bash script piping question
- Index(es):