copy some column from a data file and past in other in linux
Probably as very basic question from linux user, but i am very new to this. My data look like: Wanted to copy c2 and c3 from A, and past in B
A
c1 c2 c3
2 4 3
1 3 9
2 8 3
B
d1 d2
1 3
9 6
8 3
desired should be:
d1 d2 c2 c3
1 3 4 3
9 6 3 9
8 3 8 3
I can do in R, but how should i try in Linux command?
• 847 views
•
link
0 answers
No answers yet.
Log in to answer this question.
What have you tried (I mean like search for "merge file by column unix")?
If you search "cbind text files unix" you get here: https://stackoverflow.com/questions/24117277/bind-two-files-by-column-in-bash?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa Also confirms that this is not a bioinformatics question.
Hello bha!
We believe that this post does not fit the main topic of this site.
Not a specific bioinformatics question, but a question on unix tools.
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!