Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-22-2003, 02:12 PM   #1
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
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


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:21 AM.

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