Hacker News new | ask | show | jobs
by JetSpiegel 4177 days ago
Just use Ctrl-R in bash to search backwards in the history
1 comments

I didn't know you could do that, so it's good to have an option- thanks.

But how do you then pipe that to tail? :D

You don't, it's a readline thing, it doesn't really generate a file you can manipulate. (I expect to be proven wrong with some insane one-liner though).

What you can do is press Ctrl-R again and it will search the older match. There's also forward match but I can't recall the shortcut.