|
Kansas State University at Salina Introduction to Unix |
|
display a line of text. echo is often used to display or send an evironment variable to a pipe. (The Pipe (|), sed)
new=$(echo $old | sed 's/oldstring/newstring/')
SYNOPSIS
echo [OPTION]... [STRING]...
OPTIONS
\NNN the character whose ASCII code is NNN (octal) \ \ backslash \a alert (BEL) \b backspace \c suppress trailing newline \f form feed \n new line \r carriage return \t horizontal tab \v vertical tab