'How do you export the outcome of pipelined commands to a variable?
I've tried
INTERESTED_PART_OF_VARIABLE=VERY_LONG_VARIABLE | rev | cut -c6- | rev
echo $VERY_LONG_VARIABLE | rev | cut -c6- | rev
provides what I need
Thanks in advance
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
