<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bash on Christian Hotz-Behofsits</title><link>https://hotzbehofsits.com/tags/bash/</link><description>Recent content in Bash on Christian Hotz-Behofsits</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 09 Jan 2021 13:54:18 +0100</lastBuildDate><atom:link href="https://hotzbehofsits.com/tags/bash/index.xml" rel="self" type="application/rss+xml"/><item><title>Merge large CSV files with headers</title><link>https://hotzbehofsits.com/post/merge_csv_with_header/</link><pubDate>Sat, 09 Jan 2021 13:54:18 +0100</pubDate><guid>https://hotzbehofsits.com/post/merge_csv_with_header/</guid><description>&lt;p&gt;If you have ever worked with classic data warehousing tools, you may already know the problem: &lt;em&gt;The CSV export splits the output into different files, often with one file containing no more than 1 million observations.&lt;/em&gt; However, for analysis purposes, this format is not always optimal and must be merged into a single file. In bash this is not a big problem with cat, but only if there is no header present. The BigQuery CSV table export, for example, adds a header to each CSV file and this must be taken into account when merging.&lt;/p&gt;</description></item></channel></rss>