LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2003, 02:12 PM   #1
thepryme
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Rep: Reputation: 0
Question about read command


I was wondering how you control read to stay on the previous line. Such as

What is your name: _______

instead of


What is your name:
________
 
Old 10-22-2003, 02:38 PM   #2
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
A couple of ways. You can do it all with the read command (I forget the exact syntax). Alternatively :

printf "What is your name: "
read NAME
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Read command. unreal128 Linux - Software 2 09-30-2005 01:44 PM
understanding read command as a test frankie_DJ Programming 11 08-08-2005 02:30 PM
command to read from bottom to top (like more) tommy916 Linux - Newbie 3 07-01-2005 08:34 PM
how can i read pdf in command promt? hansi umayangan Linux - Software 1 09-04-2004 07:19 AM
Trouble with bash read command Bebo Programming 5 05-21-2004 09:21 AM


All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration