Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: tee-like file redirection in shell?



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