![]() |
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 |
| Help-prompt for path and take this as input in find command | bsandeep_80 | UNIX for Advanced & Expert Users | 7 | 01-21-2009 04:49 PM |
| Command to accept input | rexmabry | UNIX for Dummies Questions & Answers | 3 | 02-08-2008 11:56 AM |
| Can give the input to prompt using shell script | Vaibhav Agarwal | Shell Programming and Scripting | 2 | 11-01-2007 03:26 AM |
| Accept input parameters | lloydnwo | Shell Programming and Scripting | 2 | 09-14-2004 07:47 AM |
| Accept user input - only numbers | pvar | Shell Programming and Scripting | 1 | 02-10-2004 11:10 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to prompt for input & accept input in ONE line
hi,
am a new learner to shell programming. i have a script which will prompt for user to key in their name & display their name afterwards. script ===== echo "Pls enter your name:" read name echo "Your name is $name." output ===== Pls enter your name: Bob Your name is Bob. what are the modification to be done to the script in order for me to generate out the below output? (to accept the input in the SIMILAR line with the prompt, instead of the next line) output ===== Pls enter your name: Bob Your name is Bob. ur help is much appreciated. Thanks in advanced. |
|
||||
|
Thank you very much, rishi.
appreciate ur prompt reply. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|