2012-07-03 17:54:00 -04:00
\section echo echo - display a line of text
\subsection echo-synopsis Synopsis
2014-08-01 03:37:32 +01:00
\fish{syn}
echo [STRING]
\endfish
2012-07-03 17:54:00 -04:00
Help cleanup
Large list of changes, including formatting and typos for most commands.
More substantive changes have been made to alias, bind, block, break,
builtin, case, cd, commandline, count, else, emit, fish_config, funced,
function, functions, history, math, mimedb, nextd, not, popd, prevd,
pushd, pwd, random, read, set, set_color, switch, test, trap, type,
ulimit, umask, and while.
2013-05-12 15:56:01 +08:00
\subsection echo-description Description
2014-08-01 03:37:32 +01:00
`echo` displays a string of text.
Help cleanup
Large list of changes, including formatting and typos for most commands.
More substantive changes have been made to alias, bind, block, break,
builtin, case, cd, commandline, count, else, emit, fish_config, funced,
function, functions, history, math, mimedb, nextd, not, popd, prevd,
pushd, pwd, random, read, set, set_color, switch, test, trap, type,
ulimit, umask, and while.
2013-05-12 15:56:01 +08:00
The following options are available:
2014-08-01 03:37:32 +01:00
- `-n`, Do not output a newline
- `-s`, Do not separate arguments with spaces
- `-E`, Disable interpretation of backslash escapes (default)
- `-e`, Enable interpretation of backslash escapes
- `-h`, `--help` Display this help
2012-07-03 17:54:00 -04:00
2013-03-05 17:37:44 -08:00
\subsection echo-escapes Escape Sequences
2014-08-01 03:37:32 +01:00
If `-e` is used, the following sequences are recognized:
- `\` backslash
- `\a` alert (BEL)
- `\b` backspace
- `\c` produce no further output
- `\e` escape
- `\f` form feed
- `\n` new line
- `\r` carriage return
- `\t` horizontal tab
- `\v` vertical tab
- `\0NNN` byte with octal value NNN (1 to 3 digits)
- `\xHH` byte with hexadecimal value HH (1 to 2 digits)
2013-03-05 17:37:44 -08:00
2012-07-03 17:54:00 -04:00
\subsection echo-example Example
2014-08-01 03:37:32 +01:00
`echo 'Hello World'` Print hello world to stdout
2013-03-05 17:37:44 -08:00
2014-08-01 03:37:32 +01:00
`echo -e 'Top\nBottom'` Print Top and Bottom on separate lines, using an escape sequence