I got a lot of responses that I will experiment with.  I tried 'echo -e'
and that worked well.  

Thanks for all the responses

Reaz


-----Original Message-----
From: Colin Watson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 9:19 AM
To: [EMAIL PROTECTED]
Subject: Re: Script question again

On Tue, Apr 01, 2003 at 08:40:10AM -0500, Rick Pasotto wrote:
> On Tue, Apr 01, 2003 at 07:58:24AM -0500, Reaz Baksh wrote:
> > I saw a script question posted so I hope someone can help me on this
> > simple, I believe, question.
> > 
> > I'm writing a script where people have to input a number, is there a
way
> > to keep the curser on the same line as the question?
> > 
> > I tried using '\c' but that doesn't work.
> 
> *How* did you try to use '\c'? What was your exact line?
> 
> Either
> 
> echo -n "What is your question? "
> 
> or
> 
> echo -e "What is your question?\c "

Best use printf for anything complicated; echo is badly specified and
varies between shells.

-- 
Colin Watson                                  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to