[NTLUG:Discuss] HOW? bash shell shortcut using history | grep

chamster chamster at acorn.he.net
Thu Jun 7 18:02:23 CDT 2001


On Wed, Jun 06, 2001 at 11:00:57PM -0500, Richard Geoffrion wrote:
> I saw someone retrieve a previously entered command by doing a 
> 
>  history | grep {command} ... then getting the number..then typing in the number and hitting some key to make the command pop onto the command line? 
> 
> What did he do?  What keystroke did he use?

I know that your question has been answered, but an alternative to all of
this might be just hitting Ctrl-R and then typing in something that singles
out your desired history command.

Steve



More information about the Discuss mailing list