![](/img/trans.png)
[英]substitute for uuencode in UNIX shell scripting (to send an email from UNIX box)
[英]How to include column header with uuencode in unix shell scripting
我在 unix shell 腳本中使用 uuencode,但我無法獲取電子郵件中提取中包含的列標題。
file1.csv Col1 col2
Sarah
我使用過的命令:(Cat emailbody.txt; uuencode file1.csv file1.csv) | mailx -s "主題" email@.com
電子郵件中的附件。
我還需要 Col1 和 Col2 列標題
解決辦法是在sql輸出中添加header,即添加SET HEADER ON。 將 PAGESIZE 500000 設置為您的 .sql 文件。 您可以根據輸出將 pagesize 設置為最大數量。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.