You are breaking the rules by bumping up posts. Moderators, please merge this thread with Which SHELL is this ?
You havent shown us what command you issued. Without that we cant help you.
Try reading the man pages as well. They have documented the use of \c very well.
See this.
Code:
[/tmp]$ cat try.sh
#! /bin/sh
echo -e "Line 1\c"
echo ""
echo -n "Line 2"
[/tmp]$ ./try.sh
Line 1
Line 2[/tmp]$
From man sh
Code:
echo [-neE] [arg ...]
Output the args, separated by spaces, followed by a newline.
The return status is always 0. If -n is specified, the trailing
newline is suppressed. If the -e option is given, interpreta-
tion of the following backslash-escaped characters is enabled.
|