![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Enter to OBP | jess_t03 | SUN Solaris | 5 | 02-13-2008 12:14 PM |
| Cant enter password | possuman72 | SUN Solaris | 2 | 06-10-2005 02:44 PM |
| HELP with Enter Character | zecarlos | Shell Programming and Scripting | 1 | 01-30-2002 12:25 PM |
| hit 'enter' with no user intervention | jpprial | UNIX for Dummies Questions & Answers | 1 | 09-28-2001 12:05 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi ,
I do the following : ]echo "Do you want to say yes or no ?(y/n)[n]:\c" read ans here 'n' is the default value.that means if the user press ENTER key then it should be 'n' . Now how do i know that the user has pressed ENTER key.What will be stored in my variable 'ans'. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|