On Thu, Jan 30, 2003 at 07:48:14AM +0800, [EMAIL PROTECTED] wrote: > On 29 Jan 2003 15:54:32 -0600, > Ron Johnson wrote: > > > > On Wed, 2003-01-29 at 10:28, Nathan E Norman wrote: > > > On Wed, Jan 29, 2003 at 07:51:07PM +0530, Sandip P Deshmukh wrote: > > > > hello all > > > > > > > > i am sure there must be a way of doing it. i am not getting it though. > > > > > > > > let us say, i have done ls -l , etc etc > > > > then i have done a few more commands at the prompt. > > > > > > > > now, i want to use that ls command again. is there a way inwhich i can > > > > reach it quickly? for instance, i type ls and some other key and bash > > > > completes from history? > > > > tcsh has a far more elegant (tm) approach to the problem. Typing > "ls<ALT-P>" (or META-P) will get you only all the commands that > begin with "ls" (eliminating such oddities as "echo lst.txt"). If > somebody knows the precise bash equivalent of this, let me > know. BTW AFAICT the tcsh equivalent of CTRL-R is a wildcard > sequence like "*ls*", which will capture all *ls* whether command > or argument.
well, thanx for suggestion. but i am not using tcsh and control r served my purpose well so wont be shifting to it either! but i read up on tcsh in aptitude and it seems interesting. -- regards, sandip p deshmukh ------***-------- A diplomat is man who always remembers a woman's birthday but never her age. -- Robert Frost -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]