Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: read stdin in variable howto ?
- X-seq: zsh-users 9867
- From: "Artur Penttinen" <arto-p@xxxxxxxxx>
- To: marc.chantreux@xxxxxxxxxxxxxxxxxx
- Subject: Re: read stdin in variable howto ?
- Date: Tue, 31 Jan 2006 13:36:24 +0300 (MSK)
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20060131092813.GA20363@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20060131092813.GA20363@xxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: arto-p@xxxxxxxxx
- Sender: arto-p@xxxxxxxxx
>hi all,
>
>is there a way to use $(<) to read stdin ? it will be great for write
>something like
>
>for arg ( ${(f)"$(<)"} $@ ) treat_arg $arg
# for arg in ${(@f)"$(cat)"}; do print "ARG: $arg"; done
test pd
pod
^D
ARG: test pd
ARG: pod
#
--
wbw, artur
Messages sorted by:
Reverse Date,
Date,
Thread,
Author