【问题标题】:Merging files in Google Cloud Storage合并 Google Cloud Storage 中的文件
【发布时间】:2017-04-29 04:25:08
【问题描述】:

我将 Google BigQuery 查询的结果以 gzip 格式的 csv 格式导出到 Cloud Storage。由于结果约为 28GB,因此它在云存储中显示为多个文件(53MB)。我可以使用 gsutil 将它们下载到我的本地机器上。如何将所有这些合并到一个文件中,如 linux 中的 result.csv.gz?

【问题讨论】:

    标签: linux csv google-bigquery gzip google-cloud-storage


    【解决方案1】:

    想通了。您只需像 linux 中的任何其他文件一样合并它。

    cat file_* > result.csv.gz 
    

    【讨论】:

      猜你喜欢
      • 2015-08-01
      • 1970-01-01
      • 2021-01-22
      • 2014-09-08
      • 2013-04-25
      • 2018-10-17
      • 2015-07-07
      • 2018-04-22
      • 1970-01-01
      相关资源
      最近更新 更多