News for hackers. Stuff that matters.
Re:Understanding Bash History by keyist on Thursday September 16, 2010 @06:39PM (#1699380)
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/

There are no comments on this comment yet.