2

I have to join two files. Firstly, I use commant sort and made two new sorted files. Next I use join, but it doesn't work. My script:

sort  -t ',' -r -k 4,4 file1.csv > sortf1.csv
sort  -t ',' -r -k 1,1 file2.csv > sortf2.csv
join -t ',' -1 4 -2 1 sortf1.csv sortf2.csv > last.csv

And error:

join: sortf1.csv:7: is not sorted: df-77,I,red,6674,6
join: sortf2.csv:4: is not sorted: 1967,XS,34,nf-54
diego9403
  • 917

0 Answers0