![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Variables | bobo | UNIX for Dummies Questions & Answers | 1 | 01-18-2007 09:37 PM |
| doing a sed on certain variables | seaten | UNIX for Dummies Questions & Answers | 10 | 09-05-2005 07:45 PM |
| doing a sed with variables | seaten | Shell Programming and Scripting | 1 | 05-06-2005 12:08 PM |
| doing a sed with variables | seaten | UNIX for Dummies Questions & Answers | 1 | 05-06-2005 11:48 AM |
| Using Variables to Set Other Variables | superdelic | UNIX for Dummies Questions & Answers | 3 | 04-21-2005 07:44 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Regarding PS1,PS2,PS3,PS4 variables.
Hello frnds...
I m asking a general question... thought I never faced and used this (PS3) variable... or may be i m not aware of this... I know very well about the unix prompt string variables PS1,PS2,PS4. but please tell me what is the use of PS3 and where it's used. I didnt find anything satisfactory thing by googling... thanks,, Anchal. |
| Forum Sponsor | ||
|
|
|
|||
|
thanks pt14 for replying..
but the same thing i got on the net... isnt clear for me... can u please explain this.... preferably by example... that actually whre PS3 come into the picture... thanks again... |
|
|||
|
Consider the script:
select i in jan feb mar exit do case $i in jan) echo "Jan";; feb) echo "feb";; mar) echo "mar";; exit) exit;; *) echo "invalid entry";; esac done Run the script when you have not set PS3: 1) jan 2) feb 3) mar 1 Jan When you have set PS3 PS3="Select a month: " 1) jan 2) feb 3) mar Select the item number: 1 Jan Hope this helps |
|||
| Google The UNIX and Linux Forums |