# automatically keep output of commands in a logfile for immediate # subsequent inspection alias ll="$PAGER /tmp/last.log" l () { if [ "x$1" = "x" ] ; then echo "did you mean 'll'?" ; \ else /usr/bin/env " $@" 2>&1 | tee /tmp/last.log ; fi }
l !! and then ll is less mental load for me.
In reply to Re^7: Output of a command
by gaal
in thread Output of a command
by Niel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |