[clue-tech] How to NEXT in reverse-i-search
dennisjperkins at comcast.net
dennisjperkins at comcast.net
Tue Dec 14 13:30:23 MST 2010
I've found these C shell commands to be helpful in bash too. You can also do this to rerun a command. Type an '!' followed by the first few letters of the command you want to run. Bash will run the most recent command that matches.
grep ....
...
...
...
!gre (This will rerun grep, assuming no other command begins with gre.
----- Original Message -----
From: "David L. Willson" <DLWillson at TheGeek.NU>
To: "CLUE technical discussion" <clue-tech at cluedenver.org>
Sent: Tuesday, December 14, 2010 12:14:55 PM
Subject: Re: [clue-tech] How to NEXT in reverse-i-search
bash users needn't lose hope: It seems that all these things work perfectly in bash, too. I knew about the first and last, but not the second.
David L. Willson
Trainer, Engineer, Enthusias
RHCE MCT MCSE Network+ A+ Linux+ LPIC-1 NovellCLA UbuntuCP
tel://720.333.LANS
Freedom is better when you earn it. Learn Linux.
----- "Gary Whiting" <Gary.Whiting at echostar.com> wrote:
> I know, the question was originally specific to bash but I still like
> csh for recalling history.
>
> !! (last command)
> !-2 (last -2)
> !285 (Command #285 in my history)
>
> :-)
>
>
> Gary Whiting | IT Systems Manager
> EchoStar Information Technology
> 100 Inverness Terrace East | Englewood, CO 80112
> (O) 303-706-5607 | (C) 303-229-6114
> Gary.Whiting at echostar.com | http://sats-it
>
>
>
>
> -----Original Message-----
> From: clue-tech-bounces at cluedenver.org
> [mailto:clue-tech-bounces at cluedenver.org] On Behalf Of
> clue-tech-request at cluedenver.org
> Sent: Tuesday, December 14, 2010 12:00 PM
> To: clue-tech at cluedenver.org
> Subject: clue-tech Digest, Vol 57, Issue 13
>
> Send clue-tech mailing list submissions to
> clue-tech at cluedenver.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://cluedenver.org/mailman/listinfo/clue-tech
> or, via email, send a message with subject or body 'help' to
> clue-tech-request at cluedenver.org
>
> You can reach the person managing the list at
> clue-tech-owner at cluedenver.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of clue-tech digest..."
>
> _______________________________________________
> clue-tech mailing list
> clue-tech at cluedenver.org
> http://cluedenver.org/mailman/listinfo/clue-tech
_______________________________________________
clue-tech mailing list
clue-tech at cluedenver.org
http://cluedenver.org/mailman/listinfo/clue-tech
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cluedenver.org/pipermail/clue-tech/attachments/20101214/6a989ded/attachment.html
More information about the clue-tech
mailing list