Ubuntu BASH tricks and tips

repeat last command with search/replace
$ cat /var/log/syslog.1 | grep "SATA" $ ^.1^.2 $ ^.1^
 * 1) would cat syslog.2
 * 1) would cat syslog
 * etc