English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Using "enter" excutes a single line but I have 3 lines to input before excution.

2006-09-21 02:12:33 · 5 answers · asked by Anonymous in Computers & Internet Software

5 answers

If it is just a long single command put a backslash after each line. When you press enter this will allow you to enter another line. For example, I could write the command ls -l * as:

$ ls \
> -l \
> *

If you want to execute multiple commands seperate them with a ; (semicolon). For example:

$ command1; command 2; command 3

2006-09-21 02:24:02 · answer #1 · answered by Anonymous · 1 0

Put your lines of code into a shell script, then execute it. It's just like making a batch file in Windows.

2006-09-21 02:13:57 · answer #2 · answered by IT Pro 6 · 0 0

You can enter a \ at the end of each line entered in the terminal window. so
ls \
*.Z

would be the equivilent of

ls *.Z

2006-09-21 02:17:54 · answer #3 · answered by john s 2 · 0 0

TRY putting slashes in the end of the line



$_UK_HI

2006-09-21 02:22:10 · answer #4 · answered by Anonymous · 0 0

try putting a semi-colon between commands

2006-09-21 02:14:43 · answer #5 · answered by 987654321abc 5 · 0 0

fedest.com, questions and answers