1

Table look up using awk or any other means

view story
linux-howto

http://www.unix.com – Hi all, I wanted to do a lookup table method using awk or any other commands. I would really appreciate any help on this. my sample input and desired outputs are given below. file1.txt is my lookuptable file, file2.txt, is the main file. file1.txt Code: NaN  NaN 33.5    0.00000000000000 33.51  0.041351 33.52  0.082702 33.53  0.124053 33.54  0.165404 33.55  0.206755 33.56  0.248106 33.57  0.289457 33.58  0.330808 33.59  0.372159 33.6    0.41351002500000 file2.txt Code: 33.00 33.56 33.57 NaN NaN 33.50 (HowTos)