Re: cat output to two files?
From: Dances With Crows (danSPANceswitTRAPhcrows_at_usa.net)
Date: 02/23/04
- Next message: John-Paul Stewart: "Re: lp options for an HP"
- Previous message: Happyslayer: "Re: Kernel 2.4.24 to 2.6.3, doesn't modules_install"
- In reply to: Stuart Herd: "Re: cat output to two files?"
- Next in thread: John-Paul Stewart: "Re: cat output to two files?"
- Reply: John-Paul Stewart: "Re: cat output to two files?"
- Reply: Stuart Herd: "Re: cat output to two files?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Feb 2004 21:40:58 GMT
On Mon, 23 Feb 2004 16:08:22 -0500, Stuart Herd staggered into the Black
Sun and said:
> On Mon, 23 Feb 2004 21:19:42 +0100, Uli Wachowitz wrote:
>> Stuart Herd <sherd@ca.inter.net1> wrote:
>>> I need to have the output go to 2 and 3
>>> #cat 1 >2 >3
>>> This obviously does not work as it is already in 2
>> what about 'tee'?
>> cat 1 | tee 2 > 3
> perhaps i shouldn't have used cat to illustrate my example. :-) I am
> trying to get the output of a command into two different log files
What makes you think the standard output from cat is any different from
the standard output from any other command? tee works with anything
that writes to stdout--it'd be pretty bloody useless if it didn't.
> convert "${files}" -resize 800x600 -colorspace rgb "${files}.jpg"
> >>$RESULTS >>$log
convert "{$files}" -foo -bar "${files}.jpg" | tee -a $RESULTS >> $LOG
This looks more complicated than what Uli wrote, but it's conceptually
the same. HTH,
-- Matt G|There is no Darkness in Eternity/But only Light too dim for us to see Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong http://www.brainbench.com / Hire me! -----------------------------/ http://crow202.dyndns.org/~mhgraham/resume
- Next message: John-Paul Stewart: "Re: lp options for an HP"
- Previous message: Happyslayer: "Re: Kernel 2.4.24 to 2.6.3, doesn't modules_install"
- In reply to: Stuart Herd: "Re: cat output to two files?"
- Next in thread: John-Paul Stewart: "Re: cat output to two files?"
- Reply: John-Paul Stewart: "Re: cat output to two files?"
- Reply: Stuart Herd: "Re: cat output to two files?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|