📜  bash 将多行回显到文件 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:27.341000             🧑  作者: Mango

代码示例1
# possibility 1:
echo "line 1" >> greetings.txt
echo "line 2" >> greetings.txt

# possibility 2:
echo "line 1
line 2" >> greetings.txt

# possibility 3:
cat <> greetings.txt
line 1
line 2
EOT