echo
Print given arguments.
- Print a text message. Note: quotes are optional:
echo "{Hello World}"
- Print a message with environment variables:
echo "{My path is $PATH}"
- Print a message without the trailing newline:
echo -n "{Hello World}"
- Append a message to the file:
echo "{Hello World}" >> {file.txt}
- Enable interpretation of backslash escapes (special characters):
echo -e "{Column 1\tColumn 2}"
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).