4 ms·
You can write A | B | C | result=$(cat) in shell. Edit: this only works if the shell runs the last command in the current environment (as opposed to a subshell
by xiaq 3y ago
You can write A | B | C | result=$(cat) in shell.
Edit: this only works if the shell runs the last command in the current environment (as opposed to a subshell), and only ksh and zsh seem to do that...
- deleted 3y ago[deleted]