echo
命令用于在终端输出文本
):用于执行命令并将其输出作为字符串插入到
echo` 命令中。以下是一些示例:
echo -e "Hello\nWorld"
输出:
Hello
World
echo -e "Name\tAge"
输出:
Name Age
echo "He said, \"Hello!\""
输出:
He said, "Hello!"
echo "Today is `date`"
输出:
Today is Thu Sep 9 12:34:56 PDT 2021