Repeat Commands


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Repeat Commands
# 1  
Old 01-03-2005
Repeat Commands

On my system I use Escape "k" to go back in commands. I read on tutorials that it is ctrl p, but that does not work on my system.

Anyone know what the command to go foward is?
# 2  
Old 01-03-2005
It depends on yr EDITOR setting u have.

for EDITOR as vi ... ESC + k navaigates to previous commands.

CTRL + P .. i think that is for emacs editor.


do either set -o vi
or

set -o emacs

after exporting the EDITOR=vi or EDITOR=emacs.
# 3  
Old 01-03-2005
Quote:
Anyone know what the command to go foward is?
CTRL + N in emacs mode

ESC and k in vi mode
# 4  
Old 01-04-2005
Quote:
Anyone know what the command to go foward is?
Assuming you have vi as your editor.

ESC + k moves backward
ESC + j moves forward
# 5  
Old 01-04-2005
google, esc+j is the one, thx.

However I do not have to be in vi to use the command, it works right from the command line.
# 6  
Old 01-04-2005
Quote:

However I do not have to be in vi to use the command, it works right from the command line.
That's correct - run "set -o" from the command line - you should see that vi is set on.

Cheers
ZB
# 7  
Old 01-04-2005
zazzy, thank you. I do see vi set to "on".
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Repeat for different variable

Hey, I've created following script: var1=test1 setA=testA if ... touch $setA/$var1 ... fi I would like now the repeat the command touch (in this example) for different variables. So below, the varX should run 3 times (var1, var2, var4). Var3 is skipped in this example... (4 Replies)
Discussion started by: brononius
4 Replies

2. Homework & Coursework Questions

How to use loop to repeat task?

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. How can i use loop to repeat task. 2.shirt=15 black=13.50 echo "how many shirt you want" read num echo echo "Please enter a choice" echo "1 ---> normal... (5 Replies)
Discussion started by: Tauatioti
5 Replies

3. Shell Programming and Scripting

Ping and repeat ?

How do i write a loop ping to see if it get timeout or hang ? it should loop every 30 second to ping a server ? ping -c 5 -t 15 www.google.com if ]; then date '+%Y-%m-%d %H:%M:%S Connection Unavailable' >> /home/sabercats/checkconnection.log else date '+%Y-%m-%d %H:%M:%S Connection... (3 Replies)
Discussion started by: sabercats
3 Replies

4. Shell Programming and Scripting

Repeat using for loop

I have a file like this 2011-10-10 10:46:00,1-1-13-1-1,151510,ALCLA0A84D2C 2011-10-10 10:46:00,1-1-13-1-1,151520,65537 2011-10-10 10:46:00,1-1-13-1-1,151515,46932 2011-10-10 10:46:00,1-1-13-1-1,151521,32769 2011-10-10 10:46:00,1-1-13-1-1,151522,32769 2011-10-10... (4 Replies)
Discussion started by: LavanyaP
4 Replies

5. UNIX for Dummies Questions & Answers

Efficiently Repeat Text

Hi, Often when I use echo statements in scripts I echo a line of #'s above and below. For example: echo ##### echo hello world echo ##### However, I generally have a series of about 75 #'s. For example: echo #(x 75) echo hello world echo #(X 75) While this helps to delineate... (7 Replies)
Discussion started by: msb65
7 Replies

6. Shell Programming and Scripting

repeat pattern without using excel

I have a file that I need to reiterate all the lines. This is a text file with pipe delimeters, four fields and 133 lines. file1.txt ----- 0 | 0 | 1 | random TEXT1 | 0 | 0 | 2 | random TEXT2 | 0 | 0 | 3 | random TEXT3 | ... 0 | 0 | 133 | random TEXT133 | ----- Now, I need all 133... (3 Replies)
Discussion started by: ajp7701
3 Replies

7. Shell Programming and Scripting

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 (5 Replies)
Discussion started by: vilius
5 Replies

8. Shell Programming and Scripting

to copy and repeat

Hi All, I have done some looking at other threads but haven't found quite what I am looking for. I am a newbie to scripting and haven't got to where I want to you but here is my basic question. I have a script to copy a file and send it to another file with a date and time stamp. What I want to... (4 Replies)
Discussion started by: falcondown01
4 Replies

9. UNIX for Advanced & Expert Users

Keyboard repeat speed

I would like to increase the speed that characters repeat when a key is held. My older machines had a BIOS setting to control speed. I am using SCO Openserver. (1 Reply)
Discussion started by: tecss
1 Replies

10. UNIX for Dummies Questions & Answers

Repeat a command in a shell

Hi there, i would like to repeat a command in a shell sript (bash) the script starts with a menu to choose a menu point to do something .... on the end of the script i would like to restart the programm to choose the menu points on the beginning. I would also make a sript that send... (2 Replies)
Discussion started by: scotty
2 Replies
Login or Register to Ask a Question