I need to recursively merge all csv files under a root directory(arbitrary hierarchy), the csv files might not have a line break at the very end, so I would like to add a new line whenever I merge two files.
how do I do this in shellscript?
I need to recursively merge all csv files under a root directory(arbitrary hierarchy), the
Share
Use find with two -exec options:
Edit: also, maybe if your CSVs have a header, instead of
cat, you may usesed 1dto supress the first line: