ECHO(1) HP-UX 5.0 ECHO(1) NAME echo - echo (print) arguments SYNOPSIS echo [ arg ] ... HP-UX COMPATIBILITY Level: HP-UX/NUCLEUS Origin: System V Native Language Support: 8-bit data DESCRIPTION Echo writes its arguments separated by blanks and terminated by a new-line on the standard output. If echo's arguments are not quoted, or are enclosed in double quotes (" ... "), all metacharacters are expanded according to the shell's interpretation. Thus, echo can be used to verify how a certain metacharacter pattern is going to be interpreted by the shell. Echo also understands C-like escape conventions, which are listed below: \b backspace \c print line without new-line \f form-feed \n new-line \r carriage return \t tab \v vertical tab \\ backslash \n the 8-bit character whose ASCII code is the 1-, 2- or 3-digit octal number n, which must start with a zero. Note that these escape sequences are first interpreted by the shell before being passed to echo. Thus, if the arguments are unquoted, or quoted with double quotes, the backslash must be doubled to prevent premature interpretation by the shell. If the arguments are enclosed in single quotes, then the above escapes may be typed as shown. To produce a literal backslash on the output, it must be doubled (if unquoted or quoted by double quotes). If quoted with single quotes, a single backslash suffices. Echo is useful for producing diagnostics in command files and for sending known data into a pipe. SEE ALSO sh(1).