I have an awk script (let's call it my_script) which gives output as one column, like this:
DD
EE
AA
CC
BB
I also have another table:
C1 123
C3 222
C5 175
C4 318
C8 299
I want to add it to my existing table as the last column:
C1 123 DD
C3 222 EE
C5 175 AA
C4 318 CC
C8 299 BB
I tried the following script but it didn't work:
awk '{print $0, $3=myscript}' file.txt