What are common echo options?

0103

Common options for the echo command include:

  • -n: Prevents the output from adding a newline character at the end.

    Example:

    echo -n "Hello, World!"
  • -e: Enables interpretation of backslash escapes (like \n for a new line or \t for a tab).

    Example:

    echo -e "Hello,\nWorld!"
  • -E: Disables the interpretation of backslash escapes (this is the default behavior).

These options can help customize the output of the echo command based on your needs.

0 Comments

no data
Be the first to share your comment!