The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
i want to know entered string ends with .jar naree Shell Programming and Scripting 3 03-08-2008 07:24 AM
to copy and repeat falcondown01 Shell Programming and Scripting 4 09-07-2007 09:15 PM
Append 0 for single digit entered from command line namishtiwari UNIX for Dummies Questions & Answers 2 08-24-2007 06:01 AM
getting rid of $ when entered at the command line bashirpopal Shell Programming and Scripting 2 04-04-2003 11:41 AM
Repeat a command in a shell scotty UNIX for Dummies Questions & Answers 2 10-30-2002 02:42 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-01-2007
vilius vilius is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 37
Repeat last entered command ?

Hi,
how to do that ? I mean only print it but not execute. I'm using putty to interact with ksh.
(in windows cmd up arrow does the job)

thanks
vilius
  #2 (permalink)  
Old 09-01-2007
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,759
hold esc then press k
  #3 (permalink)  
Old 09-01-2007
kamitsin's Avatar
kamitsin kamitsin is offline
Registered User
  
 

Join Date: Nov 2006
Location: /dev/null
Posts: 177
but it also depends on your .profile settings. Add this line to your .profile if ESC-k does not work.

Code:
set -o vi
  #4 (permalink)  
Old 09-03-2007
namishtiwari namishtiwari is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2007
Location: Bangalore
Posts: 377
add set -o vi to your .profile and execute it.if it is alredy added then just
press esc k to see the most recent commands.you can also press esc j to go back in commands.

Thanks
Namish
  #5 (permalink)  
Old 09-03-2007
ajcannon ajcannon is offline
Registered User
  
 

Join Date: Aug 2007
Location: Binfield, Berkshire. UK
Posts: 91
ksh shortcuts

after setting 'set -o vi' you can also make use of 'esc \' to complete partial file/dir names
  #6 (permalink)  
Old 09-25-2007
gandie gandie is offline
Registered User
  
 

Join Date: Apr 2003
Location: KZN - South Africa
Posts: 1
set -o vi - error message "-o: bad option" ?

am i doing something wrong?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0