Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: tee-like file redirection in shell?
- X-seq: zsh-users 2374
- From: Bruce Stephens <bruce@xxxxxxxxxxxxxxxxxxxx>
- To: ZSH Users <zsh-users@xxxxxxxxxxxxxx>
- Subject: Re: tee-like file redirection in shell?
- Date: 09 Jun 1999 20:16:39 +0100
- In-reply-to: Sweth Chandramouli's message of "Wed, 9 Jun 1999 09:40:32 -0400"
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19990609094032.A15964@xxxxxxxxxxxxxxxxxxxx>
Sweth Chandramouli <sweth@xxxxxxxxxxxxxxxxxxxx> writes:
> is there currently some way to reproduce the effect of
> the tee command in the shell itself,
Yes. This works for me:
% ps > some_file | cat
You need the multios option set, and I don't recall whether it's the
default or not (it probably should be).
Is there any nicer way to say "save to a file and show the results"
than using the ugly "| cat"?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author