[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BASH history

From: Richard Revis
Subject: BASH history
Date: Tue, 04 May 2004 23:54:48 +0100
User-agent: Pan/0.14.0 (I'm Being Nibbled to Death by Cats!)

I have dug through the man page but seem to be missing the answer to this

Is it possible to match on the history? For example:

$ ssh <press up>

to return the last command that started with ssh rather than the last
command no matter what it was? My command history is pretty repetitive so
the long and intricate ssh lines get lost in the midst of a bunch of other
random junk. (I am aware that the correct answer would be to create script
files, but the parameters change slightly every time it seems and
maintenance is a pain.)

If not available from within BASH are there any other shells that might
implement such a feature, or possibly and extension to BASH?

Thanks in advance.

If I have seen further than other men it is because I am surrounded by pygmies.
23:50:18 up 19 days,  8:09,  9 users,  load average: 0.20, 0.11, 0.10
Transfered 104.81 mb today, 0.478 gb this week and 0.577 gb this month.
E-mail address munged to prevent spam.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]