I have a big file like this ( (included 6 columns):
Name Chr Position GType LRR BAF
250506CS3900140500001_312.1 23 26298017 BB 0.004256991 -0.0254199 1
250506CS3900176800001_906.1 7 81648528 BB 0.05812091 0.996112
250506CS3900211600001_1041.1 16 41355381 BB -0.1070691 0.9926475
250506CS3900218700001_1294.1 2 148802744 BB -0.06002647 0.9837347
250506CS3900283200001_442.1 1 62646307 AB 0.0280207 0.4966125
250506CS3900371000001_1255.1 11 35339124 BB 0.05070077 1
250506CS3900386000001_696.1 16 62646307 AB 0.0280207 0.4966125
250506CS3900487100001_1521.1 14 1110363 AB 0.0893564 0.5164082
250506CS3901300500001_1084.1 7 89431547 BB 0.008588651 1
OAR3_7444330.1 3 26298017 BB 0.004256991 -0.0254199
OAR3_74471615.1 3 41355381 BB -0.1070691 0.9926475
OAR3_74485418_X.1 5 1110363 AB 0.0893564 0.5164082
OAR3_74546684.1 3 89431547 BB 0.008588651 1
OAR3_74587791.1 3 26298017 BB 0.004256991 -0.0254199
OAR3_74604120.1 3 62646307 AB 0.0280207 0.4966125
OAR3_74642696.1 3 62646307 AB 0.0280207 0.4966125
OAR3_74703774.1 3 148802744 BB -0.06002647 0.9837347
OAR3_74732440.1 3 81648528 BB 0.05812091 0.996112
also I have list file like this (included one column):
250506CS3900283200001_442.1
250506CS3900386000001_696.1
250506CS3900371000001_1255.1
250506CS3900487100001_1521.1
OAR3_74546684.1
OAR3_74604120.1
OAR3_74703774.1
How can I extract the rows which are numbered in list file above? . Please help me. I'd be really grateful if I can commands or ...
Yes I did many try, like this: join -t $'\t' -1 1 -2 1 <(sort -t $'\t' -k1,1 440s.txt) <(sort -t $'\t' -k1,1 440.txt)> Output . But output file is empty
you're doing something wrong, or you're not using bash, or the delimiter is not a tabulation