Re: find a command i have recently used in bash

2003-02-01 Thread will trillich
On Sat, Feb 01, 2003 at 12:25:31AM +0100, Carel Fellinger wrote: > On Fri, Jan 31, 2003 at 03:09:54PM +0100, Ulf Rompe wrote: > ... > > As an example, another useful (for me) addition to the inputrc is > > this one: > > > > # Ctrl-Left/Right jumps wordwise on cmd line > > "\e[D": backward

Re: find a command i have recently used in bash

2003-01-31 Thread Carel Fellinger
On Fri, Jan 31, 2003 at 03:09:54PM +0100, Ulf Rompe wrote: ... > As an example, another useful (for me) addition to the inputrc is > this one: > > # Ctrl-Left/Right jumps wordwise on cmd line > "\e[D": backward-word > "\e[C": forward-word I fail to see the Control part here, it j

Re: find a command i have recently used in bash

2003-01-31 Thread Ulf Rompe
[EMAIL PROTECTED] writes: > tcsh has a far more elegant (tm) approach to the problem. Typing > "ls" (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. As I wro

Re: find a command i have recently used in bash

2003-01-31 Thread Sandip P Deshmukh
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

Re: find a command i have recently used in bash

2003-01-30 Thread csj
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 s

Re: find a command i have recently used in bash

2003-01-29 Thread Sandip P Deshmukh
On Wed, Jan 29, 2003 at 11:31:54AM -0500, Matthew Weier O'Phinney wrote: > -- Sandip P Deshmukh <[EMAIL PROTECTED]> wrote > (on Wednesday, 29 January 2003, 07:51 PM +0530): > > > > let us say, i have done ls -l , etc etc > > then i have done a few more commands at the prompt. > > > > now, i want

Re: find a command i have recently used in bash

2003-01-29 Thread Sandip P Deshmukh
On Wed, Jan 29, 2003 at 10:28:11AM -0600, Nathan E Norman wrote: > On Wed, Jan 29, 2003 at 07:51:07PM +0530, Sandip P Deshmukh wrote: > > > > 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

Re: find a command i have recently used in bash

2003-01-29 Thread Sandip P Deshmukh
On Wed, Jan 29, 2003 at 04:30:54PM +0100, Stephen Rueger wrote: > On Wed, Jan 29, 2003 at 07:51:07PM +0530, Sandip P Deshmukh wrote: > > 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

Re: find a command i have recently used in bash

2003-01-29 Thread Jason Pepas
> The .bash_history is only written when bash is exiting, so it won't > include commands you recently typed within the same session. That is to > say, it won't have anything since you most recently logged in. It's > also prone to missing some commands from previous sessions as well, in > cases in

Re: find a command i have recently used in bash

2003-01-29 Thread Vineet Kumar
* Jason Pepas ([EMAIL PROTECTED]) [030129 10:33]: > On Wednesday 29 January 2003 08:21 am, Sandip P Deshmukh wrote: > > 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 > >

Re: find a command i have recently used in bash

2003-01-29 Thread Ron Johnson
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 com

Re: find a command i have recently used in bash

2003-01-29 Thread olafbujok
On Wed, 29 Jan 2003 16:30:54 +0100 Stephen Rueger <[EMAIL PROTECTED]> wrote: > On Wed, Jan 29, 2003 at 07:51:07PM +0530, Sandip P Deshmukh wrote: > > let us say, i have done ls -l , etc etc > > then i have done a few more commands at the prompt. Ahoj! maybe you can try '!smth' it's mean last com

Re: find a command i have recently used in bash

2003-01-29 Thread Derrick 'dman' Hudson
On Wed, Jan 29, 2003 at 07:51:07PM +0530, Sandip P Deshmukh wrote: [find a command in shell history] Another way is to use the 'history' command (and pipe it through grep). -D -- Whoever loves discipline loves knowledge, but he who hates correction is stupid. Proverbs 12:1 http://dman

Re: find a command i have recently used in bash

2003-01-29 Thread Rodrigo Otavio Weymar Fonseca
Hi, maybe what you are looking for is: !first_letter_of_the_command i.e.: in the case of ls -l, if you use !l, it will repeat the last used command that started with the letter l. Rod On Wed, 29 Jan 2003, Sandip P Deshmukh wrote: > hello all > > i am sure there must be a way of doi

Re: find a command i have recently used in bash

2003-01-29 Thread Amal Phadke
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

RE: find a command i have recently used in bash

2003-01-29 Thread DEFFONTAINES Vincent
To: [EMAIL PROTECTED] > Subject: Re: find a command i have recently used in bash > > > On Wed, 29 Jan 2003, Sandip P Deshmukh wrote: > > > 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 so

Re: find a command i have recently used in bash

2003-01-29 Thread Michael Naumann
On Wednesday 29 January 2003 15:21, 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 t

Re: find a command i have recently used in bash

2003-01-29 Thread Jason Pepas
On Wednesday 29 January 2003 08:21 am, 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 t

Re: find a command i have recently used in bash

2003-01-29 Thread Stephen Gran
This one time, at band camp, Sandip P Deshmukh said: > 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 w

RE: find a command i have recently used in bash

2003-01-29 Thread drew cohan
>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? > >-- >regards, >sandip p deshmukh

Re: find a command i have recently used in bash

2003-01-29 Thread Andrew Perrin
Sure - to complete the prior command beginning with ls, do: !ls which will re-execute the last comment beginning with "ls". If you need finer-grained history, use the command: history which will let you copy-and-paste a prior command. ap --

Re: find a command i have recently used in bash

2003-01-29 Thread Matthew Weier O'Phinney
-- Sandip P Deshmukh <[EMAIL PROTECTED]> wrote (on Wednesday, 29 January 2003, 07:51 PM +0530): > 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

Re: find a command i have recently used in bash

2003-01-29 Thread Nathan E Norman
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

Re: find a command i have recently used in bash

2003-01-29 Thread Colin Watson
On Wed, Jan 29, 2003 at 07:51:07PM +0530, Sandip P Deshmukh wrote: > 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 k

Re: find a command i have recently used in bash

2003-01-29 Thread Stephen Rueger
On Wed, Jan 29, 2003 at 07:51:07PM +0530, Sandip P Deshmukh wrote: > 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 k

Re: find a command i have recently used in bash

2003-01-29 Thread Mike Dresser
On Wed, 29 Jan 2003, Sandip P Deshmukh wrote: > 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? well, if nothing else, you can hit up a few times and it'll scroll through your