我试图将shell脚本的输出发送到我的电子邮件中,我在我的电子邮件中获取纯文本,但是我想根据单元格为我的Excel表单的单元格着色值。请让我知道可行性。我是否需要为此目的使用其他语言?unix中的.xls文件中的shell脚本的邮件结果
下面是代码:
#/斌/庆典 月= '\ t'
(文件进行编辑) 回声-ne“舞台$ {}九月刷新型$ {九月! } LB - Start_Date $ {sep} R - Start_Date $ {sep} R - End_Date $ {sep}检查描述$ {sep}标记$ {sep}状态$ {sep}“>/home/mshilton/QA_E2E_Automation/qa_results/Refresh_results从hilton_qa.QA_Refresh_Final_Status_1的.csv
回声 “” >> /家庭/ mshilton/QA_E2E_Automation/qa_results/Refresh_results.csv 蜂巢-e “SELECT *”; >> /家庭/ mshilton/QA_E2E_Automation/qa_results/Refresh_results.csv
(对于导出邮件) 出口MAIL_LIST = “M **** [email protected]” 回声“请找到Refresh_Type附件刷新所有阶段验证结果“| mail -r”Hilton_QA @ 360D“-s”Refresh_Type Weekly Refresh QA All Stages Status“-a /home/mshilton/QA_E2E_Automation/qa_results/Refresh_results.csv </home/mshilton/QA_E2E_Automation/qa_results/Refresh_results。 csv $ MAIL_LIST
你能帮我得到上述程序中提到的查询输出(即“hive -e”select * from hilton_qa.QA_Refresh_Final_Status_1;“应该是生成HTML文件,请注意目前我正在得到一个扁平的文本文件。 –