Question: (Closed) Join command making trouble
0
gravatar for saadleeshehreen
13 months ago by
saadleeshehreen70 wrote:

Hi,

I have joined two files with the following command.

join -j 1 <(sort f1.csv) <(sort f2.csv) > f3.csv

After joining I tried to cut two fields from f3.csv.

cat f3.csv | cut -f2,10

But it can't cut the specific fields rather printing the whole table. I edited the header line for both f1 and f2 by using sed command before joining them to create f3.csv.

sed 1d | sed '1i a\t\b........."

Both f1 and f2 are absolutely Ok. cut command works for both of them but can't work for my f3.csv. Any solution?

Cheers

shell join • 258 views
ADD COMMENTlink written 13 months ago by saadleeshehreen70

Hello saadleeshehreen!

We believe that this post does not fit the main topic of this site.

This isn't a bioinformatic topic. Please ask this in a forum with a better focus on it like stackoverflow.com

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!

ADD REPLYlink written 13 months ago by finswimmer12k
Please log in to add an answer.
The thread is closed. No new answers may be added.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1283 users visited in the last hour