[ale] tcsh history command question

Dow Hurst dhurst at kennesaw.edu
Mon Aug 25 10:47:12 EDT 2003


I've seen Bob Toxen do this but can't remember the syntax.

Let's say you have a previous command you want to access and edit in a 
simple way.  How could I easily incorporate a sed s/X/Y/g type syntax 
into a history retrieval command?  Here is my example of what I'd like 
to do:

Previous command:

Aslan 58% cp /etc/stdcshrc ./nmarshal/.cshrc
..
Aslan 73% !58 s/cshrc/profile/g

will that do what I want or will that not?  What is the right way to do 
this?  I'll take bash oriented explanations instead of tcsh since that 
is the default under Linux.  Anyone have good examples of how to harness 
the power of this type syntax?  Thanks a bunch,
Dow

-- 
__________________________________________________________
Dow Hurst                  Office: 770-499-3428           
Systems Support Specialist    Fax: 770-423-6744           
1000 Chastain Rd. Bldg. 12                                
Chemistry Department SC428  Email:   dhurst at kennesaw.edu  
Kennesaw State University         Dow.Hurst at mindspring.com
Kennesaw, GA 30144                                        
*****************************************************************
This message (including any attachments) contains confidential  *
information intended for a specific individual and purpose,     *
and is protected by law.  If you are not the intended recipient,*
you should delete this message and are hereby notified that     *
any disclosure, copying, or distribution of this message, or    *
the taking of any action based on it, is strictly prohibited.   *
*****************************************************************


_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list