What is ">" in console?
When ">" appears below recent command and you can type there - what is it? Where to read about it?
|
It's stored in a variable called PS2. It's the second prompt.
http://www.davidpashley.com/articles/bash-prompts.html Quote:
|
Means that as far as the shell is concerned, you didn't complete the previous command. Usually happens in development of awk, sed and other scripts when you leave out a bracket (parentneses). To come out, type a ";" (semi-colon) and review what you typed earlier.
OK |
Quote:
Code:
echo 'hello" |
it is PS2 prompt. When you breake command using \ it will display ">" prompt
and when you complete command whole command will execute. i.e Code:
echo "Hello friends \ |
As mentioned, typically its the the 2ndary prompt eg if you have unmatched quotes (post #4) it's saying you need to close the quotes before it will action the cmd.
If you are good, you can write+run a shell script on the fly without creating a shell file eg Code:
[name@host:/path]$ for file in `*.dat` |
All times are GMT -5. The time now is 11:08 AM. |