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

Re: Script question again

On Tue, Apr 01, 2003 at 07:58:24AM -0500, Reaz Baksh wrote:
> Hello
> 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?


echo -n "What is your question? "


echo -e "What is your question?\c "

ought to work.

Certain nations seem particularly liable to fall prey to
governmental plunder. They are those in which men, lacking faith
in their own dignity and capability, would feel themselves lost if
they were not governed and administered every step of the way.
	-- Frédéric Bastiat (1801-1850)
    Rick Pasotto    rick@niof.net    http://www.niof.net

Reply to: