簡體   English   中英

如何在 unix shell 腳本中包含帶有 uuencode 的列標題

[英]How to include column header with uuencode in unix shell scripting

我在 unix shell 腳本中使用 uuencode,但我無法獲取電子郵件中提取中包含的列標題。

file1.csv Col1 col2

  1. 梅根
  2. Sarah

我使用過的命令:(Cat emailbody.txt; uuencode file1.csv file1.csv) | mailx -s "主題" email@.com

電子郵件中的附件。

  1. 梅根
  2. 莎拉

我還需要 Col1 和 Col2 列標題

解決辦法是在sql輸出中添加header,即添加SET HEADER ON。 將 PAGESIZE 500000 設置為您的 .sql 文件。 您可以根據輸出將 pagesize 設置為最大數量。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM