>  You only need one invocation.
>
> pipeline { echo one two three }
> withstdinas -n line
> importas -u line line
> multidefine $line { cmd key val }
> echo $key $val
>
>  will print "two three".

Thanks.

Is it possible to use one multidefine on a $line that gets an unknown
number of words from stdin, then split it by one type of delimiter
with the -r option (not knowing how many words it would get into
$val). For instance, val might contain an unknown number of words.

Then, I'd like to use a second multidefine or something like it to
extract those words out of $val into separate variables. Is this
possible?

Thank you.

Reply via email to