How to merge all columns of one CSV file with another CSV file? #1811
Unanswered
cirosantilli
asked this question in
Q&A
Replies: 2 comments 6 replies
-
Hi @cirosantilli , it seems to me that you would like a verb to do the paste, which is merge horizontally. I also asked for this feature: #335 Using the linux cli, you should use
|
Beta Was this translation helpful? Give feedback.
4 replies
-
You can use 3 mlr invocations with process substitutions to add line numbers, then join on them:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have two CSV files, both have the same number of rows:
in1.csv
in2.csv
How to create a merged CSV as:
My first instinct would be to try and use
join
and try to add a virtual ID column to both CSV that contains the row index and use that as the join key, but I'm not sure if that is possible and what's the syntax.It is OK to assume that the header titles are different, or that there are no headers.
Perhaps this is what was asked at: #1200 ? But there wasn't a minimal example and a minimal answer :-)
This would also answer: https://unix.stackexchange.com/questions/293775/merging-contents-of-multiple-csv-files-into-single-csv-file
Beta Was this translation helpful? Give feedback.
All reactions