Ubuntu BASH tricks and tips

From richud.com
Jump to: navigation, search

repeat last command with search/replace

$ cat /var/log/syslog.1 | grep "SATA"
#would cat syslog.2
$ ^.1^.2
#would cat syslog
$ ^.1^ 
#etc