Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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...





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: