echo -n

Bill Poser POSER at SU-CSLI.ARPA
Fri Jan 11 09:02:44 AEST 1985


By default, echo puts a newline at the end of the string it prints.
The -n option leaves out the newline. This is useful, for example, in
prompts; e.g. to prompt for terminal type in a .login file do:

	echo -n "Terminal: "

and whatever the user types will appear on the same line as the prompt.

Bill Poser (poser at su-csli).
-------



More information about the Comp.unix mailing list