Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: piping question
- X-seq: zsh-users 19210
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: piping question
- Date: Fri, 03 Oct 2014 08:04:47 -0700
- In-reply-to: <1412326536.9490.1@numa-i>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <1412259225.3798.0@numa-i> <141002192910.ZM13761@torch.brasslantern.com> <1412326536.9490.1@numa-i>
On Oct 3, 10:55am, Helmut Jarausch wrote:
> Subject: Re: piping question
>
> On 10/03/2014 04:29:10 AM, Bart Schaefer wrote:
> >
> > xmost() {
> > () { xterm -g 180x30+0+0 -hold -e "most < $1" } <(cat)
> > }
> >
>
> Many thanks, that works just fine.
For completeness:
xmost() {
set - "${(qq)@}" # Requote command line arguments
if [[ -t 0 ]]
then
xterm -g 180x30+0+0 -hold -e "most $*"
else
() { xterm -g 180x30+0+0 -hold -e "most $* < $1" } <(cat)
fi
}
--
Barton E. Schaefer
Messages sorted by:
Reverse Date,
Date,
Thread,
Author