<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'>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.<br><br>grep ....<br>...<br>...<br>...<br>!gre (This will rerun grep, assuming no other command begins with gre.<br><br>----- Original Message -----<br>From: "David L. Willson" <DLWillson@TheGeek.NU><br>To: "CLUE technical discussion" <clue-tech@cluedenver.org><br>Sent: Tuesday, December 14, 2010 12:14:55 PM<br>Subject: Re: [clue-tech] How to NEXT in reverse-i-search<br><br>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.<br><br>David L. Willson<br>Trainer, Engineer, Enthusias<br>RHCE MCT MCSE Network+ A+ Linux+ LPIC-1 NovellCLA UbuntuCP<br>tel://720.333.LANS<br>Freedom is better when you earn it. Learn Linux.<br><br>----- "Gary Whiting" <Gary.Whiting@echostar.com> wrote:<br><br>> I know, the question was originally specific to bash but I still like<br>> csh for recalling history.<br>> <br>> !! (last command)<br>> !-2 (last -2)<br>> !285 (Command #285 in my history)<br>> <br>> :-)<br>> <br>> <br>> Gary Whiting | IT Systems Manager<br>> EchoStar Information Technology<br>> 100 Inverness Terrace East | Englewood, CO 80112<br>> (O) 303-706-5607 | (C) 303-229-6114<br>> Gary.Whiting@echostar.com | http://sats-it<br>> <br>> <br>> <br>> <br>> -----Original Message-----<br>> From: clue-tech-bounces@cluedenver.org<br>> [mailto:clue-tech-bounces@cluedenver.org] On Behalf Of<br>> clue-tech-request@cluedenver.org<br>> Sent: Tuesday, December 14, 2010 12:00 PM<br>> To: clue-tech@cluedenver.org<br>> Subject: clue-tech Digest, Vol 57, Issue 13<br>> <br>> Send clue-tech mailing list submissions to<br>> clue-tech@cluedenver.org<br>> <br>> To subscribe or unsubscribe via the World Wide Web, visit<br>> http://cluedenver.org/mailman/listinfo/clue-tech<br>> or, via email, send a message with subject or body 'help' to<br>> clue-tech-request@cluedenver.org<br>> <br>> You can reach the person managing the list at<br>> clue-tech-owner@cluedenver.org<br>> <br>> When replying, please edit your Subject line so it is more specific<br>> than "Re: Contents of clue-tech digest..."<br>> <br>> _______________________________________________<br>> clue-tech mailing list<br>> clue-tech@cluedenver.org<br>> http://cluedenver.org/mailman/listinfo/clue-tech<br>_______________________________________________<br>clue-tech mailing list<br>clue-tech@cluedenver.org<br>http://cluedenver.org/mailman/listinfo/clue-tech</div></body></html>