如何使用linux mail命令在电子邮件中插入新行? [英] how to insert new line in the email using linux mail command?
本文介绍了如何使用linux mail命令在电子邮件中插入新行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用linux mail命令在电子邮件中插入新行?
how to insert new line in the email using linux mail command?
echo "Hi xxx, would you tell me something?\\n thanks!\\n -xxx" | mail -s "subject" xxx@gmail.com
电子邮件显示文字'\\\
' ,不是一个换行符,如何修复?
The email shows the literal '\n', not a newline, how do fix it?
推荐答案
尝试使用 echo -e
echo -eHello \\\
World
您可以从命令行输入 man echo
来阅读更多。
You can type man echo
from the command line to read more.
这篇关于如何使用linux mail命令在电子邮件中插入新行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文