[kwlug-disc] command prompt history

Raul Suarez rarsa at yahoo.com
Tue Mar 16 10:39:58 EDT 2010


For repetitive tasks nothing like a script.

Once you write your commands once, you can :
1. open ~\.bash_history and copy the commands to another file. 
2. substitute whatever needs to be a parameter
3. save the file
4. chmod +r myscript.sh
5. execute the script using the parameters

Raul Suarez

Technology consultant
Software, Hardware and Practices
_________________
http://rarsa.blogspot.com/ 
An eclectic collection of random thoughts


--- On Tue, 3/16/10, Insurance Squared Inc. <gcooke at insurancesquared.com> wrote:

> From: Insurance Squared Inc. <gcooke at insurancesquared.com>
> Subject: Re: [kwlug-disc] command prompt history
> To: "KWLUG discussion" <kwlug-disc at kwlug.org>
> Received: Tuesday, March 16, 2010, 8:45 AM
> 
> 
> 
>   
>   
> 
>  
> I've been doing the Ctrl-R thing yesterday and
> today.  That's totally
> what I was looking for and a huge timesaver.  I seem
> to do so much
> repetitive repetitive stuff, typing lengthy commands is a
> pain.
> 
> 
> 
> Test/upload/test/upload is one example - I might do that 20
> times in an
> hour, with the same 3-4 commands.  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Raul Suarez wrote:
> 
>   If you are at the command line you can type Ctrl-R
> and start typing the command. It will do a reverse search.
> 
> Another way I use is to open the ~\.bash_history file
> which contains the list of commands.
> 
> Raul Suarez
> 
> Technology consultant
> Software, Hardware and Practices
> _________________
> http://rarsa.blogspot.com/
> 
> An eclectic collection of random thoughts
> 
> 
> --- On Mon, 3/15/10, Insurance Squared Inc. <gcooke at insurancesquared.com>
> wrote:
> 
>   
>   
>     From: Insurance Squared Inc. <gcooke at insurancesquared.com>
> Subject: [kwlug-disc] command prompt history
> To: "KWLUG discussion" <kwlug-disc at kwlug.org>
> Received: Monday, March 15, 2010, 2:27 PM
> What's the command to browse your
> command line history, based on the first letter of the
> command?
> 
> i.e. I'm at a command prompt and want to get the last
> 'mysql' command I typed in. 
> I know it's possible, I don't even know what the
> heck I'd
> google :).
> 
> 
> 
> _______________________________________________
> kwlug-disc_kwlug.org mailing list
> kwlug-disc_kwlug.org at kwlug.org
> http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org
> 
>     
>   
>   
> 
>      
> __________________________________________________________________
> Yahoo! Canada Toolbar: Search from anywhere on the web, and
> bookmark your favourite sites. Download it now
> http://ca.toolbar.yahoo.com.
> 
> _______________________________________________
> kwlug-disc_kwlug.org mailing list
> kwlug-disc_kwlug.org at kwlug.org
> http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org
> 
>   
> 
> 
> 
>  
> 
> 
> 
> -----Inline Attachment Follows-----
> 
> _______________________________________________
> kwlug-disc_kwlug.org mailing list
> kwlug-disc_kwlug.org at kwlug.org
> http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org
> 


      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/



More information about the kwlug-disc_kwlug.org mailing list