Next: eval, Previous: drivemap, Up: The list of command-line and menu entry commands [Contents][Index]

#### 16.3.25 echo

Command: echo [`-n`] [`-e`] string … ¶

  Display the requested text and, unless the `-n` option is used, a trailing new line. If there is more than one string, they are separated by spaces in the output. As usual in GRUB commands, variables may be substituted using ‘`${var}`’.

  The `-e` option enables interpretation of backslash escapes. The following sequences are recognised:

  `\\`

    backslash

  `\a`

    alert (BEL)

  `\c`

    suppress trailing new line

  `\f`

    form feed

  `\n`

    new line

  `\r`

    carriage return

  `\t`

    horizontal tab

  `\v`

    vertical tab

  When interpreting backslash escapes, backslash followed by any other character will print that character.