Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

csh command history

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
how do i use the command history feature under csh in Solaris ? Also how do i use command autocomplete ?
 
hi anoop,

I will try to sum up some of (my) most used features:

1. "!!" Refer to the previous command.
2. "!n" Refer to command line n.
3. "!?str?" Refer to the most recent command containing str.
4. "^previous_word^replacement^"
Repeat the previous command line replacing
the string previous_word with the string
replacement.


but u might already know this! for command autocomplete there are word designators and modifiers. for eg: case 4 can be written as "!:s/previous_word/replacement/"

hope this helps.
-shail [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top