The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 05-04-2006
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
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.