This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Join command making trouble

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

join shell

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!

0 answers

No answers yet.

Log in to answer this question.