[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Script question again



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:cjwatson@debian.org] 
Sent: Tuesday, April 01, 2003 9:19 AM
To: debian-user@lists.debian.org
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                                  [cjwatson@flatline.org.uk]


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org




Reply to: