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]
Reply to: