From: mason@primenet.com.au (Geoff Wing)
To: zsh-users@sunsite.auc.dk
Subject: Re: tee-like file redirection in shell?
Date: 9 Jun 1999 23:10:35 GMT [thread overview]
Message-ID: <slrn7ltt3b.e47.mason@coral.primenet.com.au> (raw)
In-Reply-To: <19990609172916.A17470@astaroth.nit.gwu.edu>
Sweth Chandramouli <sweth@astaroth.nit.gwu.edu> typed:
:On Wed, Jun 09, 1999 at 08:16:39PM +0100, Bruce Stephens wrote:
:> Sweth Chandramouli <sweth@astaroth.nit.gwu.edu> 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
:> Is there any nicer way to say "save to a file and show the results"
:> than using the ugly "| cat"?
: i don't know that it's particularly nicer, but something like
:% ps > some_file > /dev/stdout
: should at least save a process from being spawned.
% ps >&1 >some_file
NB: take care with the order, it's not
% ps >some_file >&1
Regards,
--
Geoff Wing <gcw@pobox.com> Mobile : (Australia) 0413 431 874
Work URL: http://www.primenet.com.au/ Ego URL: http://pobox.com/~gcw/
next prev parent reply other threads:[~1999-06-09 23:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-09 13:40 Sweth Chandramouli
1999-06-09 13:56 ` Geoff Wing
1999-06-09 19:16 ` Bruce Stephens
1999-06-09 21:29 ` Sweth Chandramouli
1999-06-09 23:10 ` Geoff Wing [this message]
1999-06-10 3:15 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrn7ltt3b.e47.mason@coral.primenet.com.au \
--to=mason@primenet.com.au \
--cc=zsh-users@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).