[Techtalk] weirdness piping to a variable

R. Daneel Olivaw rdaneel.olivaw at gmail.com
Mon Sep 16 02:13:34 UTC 2013


Hi there,

Le 2013-09-11 08:09, Miriam English a écrit :
> Anybody have any ideas?

I'm a bit late, as well :D

And actually previous responses are right.
Now, what I do most of the time:

some_var=$(command | command | command)

The final result gets into my variable and I move along with it ...

in your example:
a=$(echo "quick brown fox" | cut -d' ' -f2)
echo $a

HTH,

R. Daneel Olivaw,
The Human Robot Inside.


More information about the Techtalk mailing list