I believe the bash implementation of the history command uses
the system developed in the 70's for the c shell. In that
system (and in bash), you type ! followed by the first few
characters of the command you want to repeat, and the shell
finds it for you. If you don't need to edit the command, this
can be quite handy.
Marc Mutz wrote:
>
> Kurt Kehler wrote:
> >
> > On Tue, 24 Aug 1999 00:50:41 EDT, [EMAIL PROTECTED] wrote:
> >
> > >It seems reasonable to me that if I can't catch it with shift-page up, I
> > >can recall the command with up-arrow, append |less to it, and run it
> > >again, so I haven't made a serious attemp to find where that is set.
> >
> > It now seems very reasonable to me also. :) And leads to a question
> > about up-arrow history. How do you recall a command which may be 17
> > up-arrows away? MS-DOS 5 had doskey, i.e. F8 + letter(s) would recall
> > the most recent command that began with that(those) letter(s). I want
> > to do something similar with bash but am unsure of the unix way (other
> > than pressing up-arrow 17 times.)
> >
> > Kurt
> CTRL-R
> (read man bash, section COMMAND HISTORY)
>
> Marc
>
> --
> Marc Mutz <[EMAIL PROTECTED]> http://marc.mutz.com/
> University of Bielefeld, Dep. of Mathematics / Dep. of Physics
>
> PGP-keyID's: 0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)