1827289 Members
3279 Online
109717 Solutions
New Discussion

Re: echo without newline

 
SOLVED
Go to solution
Bill McNAMARA_1
Honored Contributor

echo without newline

hi, I'm trying to echo "."
in a for loop and get an o/p as follows

............................

rather than

.
.
.
.
.
.
.
.
.

How can I echo without newline?

Later,
Bill
It works for me (tm)
4 REPLIES 4
Santosh Nair_1
Honored Contributor
Solution

Re: echo without newline

Bill,


Try
echo ".\c"

-Santosh
Life is what's happening while you're busy making other plans
James R. Ferguson
Acclaimed Contributor

Re: echo without newline

Hi Bill:

# echo ".\c"

...the '\c' suppresses the newline.

Regards!

...JRF...
Bill McNAMARA_1
Honored Contributor

Re: echo without newline

thanks guys....................................................................................................................................!
It works for me (tm)
Curtis Larson_1
Valued Contributor

Re: echo without newline

or print -n "."