[clue-tech] How to NEXT in reverse-i-search

Maxwell Spangler maxlists at maxwellspangler.com
Mon Dec 13 23:47:03 MST 2010


On Mon, 2010-12-13 at 14:37 -0700, David L. Willson wrote:
> So, you know that <CTRL>+r followed by a pattern finds the last (most recent) occurence of that string in your bash command history. What if you want the 2nd or 3rd most recent? How do you keep "searching up" your history?

If you go old school and set it to 'vi' mode then you use / to search
forward and ? to search backward :-)

set -o vi

Not that I think you might, but it's a helpful answer :)
-- 
Maxwell Spangler
========================================================================
        Linux System Administration / Computing Services
        Photography / Graphics Design / Writing
        Boulder, Colorado
        http://www.maxwellspangler.com
        



More information about the clue-tech mailing list