Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Dec 2001 19:27:08 +0000 (UTC)
From:      Rakesh Prajapati <rprajapa@sdf.lonestar.org>
To:        Dominic Marks <dominic_marks@btinternet.com>
Cc:        Darren <backdoc@crotchett.com>, <questions@FreeBSD.ORG>
Subject:   Re: awesome find
Message-ID:  <Pine.NEB.4.33.0112291916130.29046-100000@sdf.lonestar.org>
In-Reply-To: <E16KOag-0006zN-00@gadolinium.btinternet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 29 Dec 2001, Dominic Marks wrote:

> Date: Sat, 29 Dec 2001 18:52:38 +0000
> From: Dominic Marks <dominic_marks@btinternet.com>
> To: Darren <backdoc@crotchett.com>, questions@FreeBSD.ORG
> Subject: Re: awesome find
>
> On Saturday 29 December 2001 3:01 pm, Darren wrote:
> > I'm using bash 2.05 on FreeBSD 4.4-RELEASE.  I have discovered a
> > feature of bash that I didn't know existed.  Since there may be
> > others like me who did not know that this feature existed, I
> > thought that I'd point it out.
> >
> > Anyway, forever now, I've taken advantage of using the up arrow to
> > access the most recently used commands.  By accident, I discovered
> > that if you type a character or two of what you intend to type
> > _AND_THEN_ press the up arrow key, bash will narrow down your
> > options to only the commands in your history that begin with the
> > same characters.  Kinda like a grep/regex thing.
> >
> > In other words, if you use vi, try typing vi at the command line
> > and then use the up arrow.  You'll see only the commands in history
> > that start with vi.
> >
> > Awesome.
>
> FYI: This is also the case with most good interactive shells,
> including the stock tcsh included with FreeBSD.
>
> > Darren
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
>
> --
> Dominic
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>

Also in bash , just type in a few chars (one or more) and press
TAB once and it will expand to files in that directory and pressing TAB
once more and it will list all the commands/programs that start with those
letters which are in $PATH.

eg. ta<TAB><TAB> gives me
tail talk tangle tar tasklist_applet

rprajapa@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.4.33.0112291916130.29046-100000>