Hi dears
i use bash shell
i have INPUT.txt
like this
number of columns different in one
some row have 12 , some 11 columns
see last column
INPUT.txt
CodeGender Age Grade Dialect Session Sentence Start End Length Phonemic Phonetic
63 M 27 BS/BA TEHRANI 3 4 298320 310050 11730 j j
63 M 27 BS/BA TEHRANI 3 4 310050 311430 1380 a
63 M 27 BS/BA TEHRANI 3 4 311430 312080 650 ] ]
and two TABLE text like this.have two columns.
TABLE1.txt
j feat1
a feat2
.
.
.
TABLE2.txt
j sp1
a sp2
.
.
I want to add two columns to INPUT.txt
search last column of INPUT in TABLEs text and add correspond columns to INPUT
(i think can merge TABLEs like j feat1 sp1)
and output like this
output.txt
CodeGender Age Grade Dialect Session Sentence Start End Length Phonemic Phonetic feat sp
63 M 27 BS/BA TEHRANI 3 4 298320 310050 11730 j j feat1 sp1
63 M 27 BS/BA TEHRANI 3 4 310050 311430 1380 a feat2 sp2
63 M 27 BS/BA TEHRANI 3 4 311430 312080 650 ] ] . .
.
.
thanks all