<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"><span id="yui_3_16_0_ym19_1_1474728565115_15540">Hi all. </span></div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"><span>I request for some help. </span></div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"><span>I have two files which look like this. </span></div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"><span><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_17367">aditya@agniilap:~/geeta/ncl/ReadHDF-2A25$ ls -lrt 11n67* Z.txt.20080324.70</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_17368">-rw-rw-r-- 1 aditya aditya 760240 Sep 16 21:57 Z.txt.20080324.70 (17680 Lines)</div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_17369">-rw-rw-r-- 1 aditya aditya 5430095 Sep 24 01:17 11n67 (18326 Lines)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_17370"><br id="yui_3_16_0_ym19_1_1474728565115_17371"></div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"><span>File 11n67 is like this...</span></div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"><span>Line No NS NPix ZLev11 .......................Zlev67</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_15573"> 1 2915 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_15574"> 2 2915 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_15575"> 3 2915 2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_15576"> 4 2915 3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_15577"> </div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"><span id="yui_3_16_0_ym19_1_1474728565115_15552">18326 3288 48 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00</span></div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"><br></div><div></div><div id="yui_3_16_0_ym19_1_1474728565115_15544"> </div><div id="yui_3_16_0_ym19_1_1474728565115_15544">Z.txt.20080324.70 Looks like this. </div><div id="yui_3_16_0_ym19_1_1474728565115_15544" dir="ltr">Line No NS NPix Lev Z</div><div id="yui_3_16_0_ym19_1_1474728565115_15544"><div id="yui_3_16_0_ym19_1_1474728565115_20951">17659 3288 27 70 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20952"> 17660 3288 28 70 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20953"> 17661 3288 29 70 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20954"> 17662 3288 30 70 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20955"> 17663 3288 31 70 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20956"> 17664 3288 32 70 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20957"> 17665 3288 33 70 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20958"> 17666 3288 34 70 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20959"> 17667 3288 35 70 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20960"> 17668 3288 36 70 0.00</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_20961"> 17669 3288 37</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_20961"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_20961"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_20961">I have to append the value of Z from the 2nd file at one point (say 3288/35) to the same point in the first file. </div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_20961">I used if statement, but I am not able to get what I desired (Code attached). </div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_20961"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_20961">I want the file 11n67 to be appended with value of Z from 2nd file at the common points. </div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_20961"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_20961">Thanks</div></div><div class="signature" id="yui_3_16_0_ym19_1_1474728565115_15543">Geeta.</div></div></body></html>