First of all put your requirements inside code tags
something like this
as per the site's requirements.
Next, what have you attempted so far.
Which Operating System you are using.
Which shell is your preference.
What are the OS and Shell versions that you have.
Your _preferred_ utilities to attain the results...
One might also consider explaining how the 3rd column in TABLE.txt is supposed to be used.
It appears that you want ]/.xori to be translated to word4 , but column 2 in TABLE.txt on the line with ]/.xori has word in column 2 on that line and 4 in column 3; not word4 , Your description didn't say anything about a column 3 in TABLE.txt .
thanks all
i use UBUNTU 16.04 LTS
it's ok.
may explain your code?
so another question
i have INPUT
like this
see last column
number of columns different in one
some row have 12 , some 11
INPUT
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
j feat1
a feat2
.
.
.
TABLE2
j sp1
a sp2
.
.
I want to add two columns to INPUT
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
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 ] ]