Technical Solution
How to remove repeating headers of a merged CSV file in Libre office calc?
When we combine different CSV files using ‘cat’ command, the resulting CSV file contain repeating headers. This usually happens when we combine different CSV files having the same headers. Let us check a simple method to remove the repeating headers in Libre office - Calc document.
Please go through the below steps to remove the repeating headers.
- First, add a column in the beginning of the Calc document.
- Insert row number excluding the first row (Suppose it contain the titles)
- Insert first two numbers.
- Then select the two values.
- Move the mouse to the right end.
- Double Click it. (This will insert numbers up to the end of your document)
- Then sort columns based on any column (This will group the repeating headings together). Data » Sort » Ascending
- Delete the unwanted headings
- Select the document excluding the first row.
- Again, sort the document based on the first column.
- Then remove the column we created for sorting purpose.
This will give you a CSV file without repeating headers. Hope this would help you to create the perfect document. Please note that this is the only method to accomplish this task.