- Capture the result of a command as a string:
$( <cmd> )
> emacs -nw $(git ls-files | grep the-file)
- Re-run last command:
!!
> git ls-files | grep the-file
some/long/path/you/have/not/memorized
> emacs -nw $(!!)
- Capture the result of a command and feed it into a program:
<( <cmd> )
> diff file.go <(gofmt -s file.go)