Sponsored Content
Top Forums Shell Programming and Scripting Where does the 8 come from? (or what happend to the first `) Post 302296220 by vgersh99 on Tuesday 10th of March 2009 04:06:40 PM
Old 03-10-2009
use 'printf'
Code:
$ ksh
$ echo "\047"0"\047"
8'
$ printf "\047"0"\047"
'0'

 

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

its happend after restart.

From Sept 12th onwards i am facing some problem in the file permission. Normally the file get generated by a script with the permission 666 and from sept 12th onwards it get changed to 644 If we create a blank file using touch command it is with the permission 666, but the files which are... (3 Replies)
Discussion started by: onlytorobin
3 Replies

2. Shell Programming and Scripting

What happend?

Hi everybody: Could anybody tell me how I can solve this mistake. I have two files and i would like one, so I use the cat command, like always: cat file1.dat file2.dat > file3.dat But the first line from file2.dat is concatenated with the last line from file1.dat: file1.dat... (2 Replies)
Discussion started by: tonet
2 Replies
ECHO(1) 						    BSD General Commands Manual 						   ECHO(1)

NAME
echo -- write arguments to the standard output SYNOPSIS
echo [-n] [string ...] DESCRIPTION
The echo utility writes any specified operands, separated by single blank (' ') characters and followed by a newline (' ') character, to the standard output. The following option is available: -n Do not print the trailing newline character. The end-of-options marker -- is not recognized and written literally. The newline may also be suppressed by appending 'c' to the end of the string, as is done by iBCS2 compatible systems. Note that the -n option as well as the effect of 'c' are implementation-defined in IEEE Std 1003.1-2001 (``POSIX.1'') as amended by Cor. 1-2002. For porta- bility, echo should only be used if the first argument does not start with a hyphen ('-') and does not contain any backslashes (''). If this is not sufficient, printf(1) should be used. Most shells provide a builtin echo command which tends to differ from this utility in the treatment of options and backslashes. Consult the builtin(1) manual page. EXIT STATUS
The echo utility exits 0 on success, and >0 if an error occurs. SEE ALSO
builtin(1), csh(1), printf(1), sh(1) STANDARDS
The echo utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'') as amended by Cor. 1-2002. BSD
November 12, 2010 BSD
All times are GMT -4. The time now is 12:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy