Off topic:Join command making trouble
0
0
Entering edit mode
5.6 years ago

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 • 694 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1734 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6