Introduction to Unix |
|
![]() |
![]() |
4.2. echo¶
-
echo
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
4.2.1. Escaped Characters¶
\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