【问题标题】:How to include column header with uuencode in unix shell scripting如何在 unix shell 脚本中包含带有 uuencode 的列标题
【发布时间】:2021-12-17 15:23:24
【问题描述】:

我在 unix shell 脚本中使用 uuencode,但我无法获取电子邮件中提取的列标题。

file1.csv Col1 col2

  1. 梅根
  2. Sarah
    

我使用过的命令: (猫 emailbody.txt;uuencode 文件 1.csv 文件 1.csv)| mailx -s "主题" email@.com

电子邮件中的附件。

  1. 梅根
  2. 莎拉

我还需要 Col1 和 Col2 列标题

【问题讨论】:

  • 您认为 uuencoded 文件的列标题是什么样的? “data”?
  • 我已经编辑并添加了更多详细信息,请检查
  • 该帖子可以使用更多格式,但听起来您是在说“col1 col2”在file1.csv中,但是在您对其进行uuencode之后,标题会在......做时消失什么——稍后查看附件?
  • @Jeff schaller ...是的,在我使用 uuencode 后,标题消失了。所以在电子邮件中附件没有标题

标签: shell unix uuencode


【解决方案1】:

解决方案是在 SQL 输出中添加标头,即将 SET HEADER ON ,SET PAGESIZE 500000 添加到您的 .sql 文件中。您可以根据您的输出将pagesize 设置为最大数量。

【讨论】:

    猜你喜欢
    • 2016-11-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-11
    • 2013-07-05
    • 1970-01-01
    • 1970-01-01
    • 2012-06-05
    相关资源
    最近更新 更多