This is a test version of Biostars. For the public version, visit https://www.biostars.org.
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?

linux

What have you tried (I mean like search for "merge file by column unix")?

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!

0 answers

No answers yet.

Log in to answer this question.