|
|
|
|
|
by keyist
5759 days ago
|
|
While what is covered is very well presented, post doesn't mention `shopt -s histappend`, which is one of the most important things to note when dealing with history in bash. Also useful: you can append :s/foo/bar to bang commands to substitute once, :gs/foo/bar to substitute globally. `man bash` History Expansion section has the other options under subheading 'Modifiers'. I highly recommend the following resource -- it's what really got me saving keystrokes: http://www.ukuug.org/events/linux2003/papers/bash_tips/ |
|