<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.&nbsp;</span></div><div id="yui_3_16_0_ym19_1_1474728565115_15490" dir="ltr"><span>I request for some help.&nbsp;</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.&nbsp;</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 &nbsp;760240 Sep 16 21:57 Z.txt.20080324.70 &nbsp; (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 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (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 &nbsp;NS &nbsp;NPix &nbsp;ZLev11 &nbsp; .......................Zlev67</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_15573">&nbsp;1 2915 &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; 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">&nbsp; &nbsp; &nbsp; 2 2915 &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 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">&nbsp; &nbsp; &nbsp; 3 2915 &nbsp; &nbsp;2 &nbsp; &nbsp; &nbsp; 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">&nbsp; &nbsp; &nbsp; 4 2915 &nbsp; &nbsp;3 &nbsp; &nbsp; &nbsp; 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">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</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 &nbsp; &nbsp;48 &nbsp; &nbsp; &nbsp;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">&nbsp;</div><div id="yui_3_16_0_ym19_1_1474728565115_15544">Z.txt.20080324.70 Looks like this.&nbsp;</div><div id="yui_3_16_0_ym19_1_1474728565115_15544" dir="ltr">Line No &nbsp; &nbsp; &nbsp;NS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NPix &nbsp; &nbsp; Lev &nbsp; &nbsp;Z</div><div id="yui_3_16_0_ym19_1_1474728565115_15544"><div id="yui_3_16_0_ym19_1_1474728565115_20951">17659 &nbsp; &nbsp; &nbsp; &nbsp;3288 &nbsp; &nbsp; &nbsp; &nbsp; 27 &nbsp; &nbsp; &nbsp; &nbsp; 70 &nbsp; &nbsp; 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20952">&nbsp; 17660 &nbsp; &nbsp; &nbsp; &nbsp;3288 &nbsp; &nbsp; &nbsp; &nbsp; 28 &nbsp; &nbsp; &nbsp; &nbsp; 70 &nbsp; &nbsp; 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20953">&nbsp; 17661 &nbsp; &nbsp; &nbsp; &nbsp;3288 &nbsp; &nbsp; &nbsp; &nbsp; 29 &nbsp; &nbsp; &nbsp; &nbsp; 70 &nbsp; &nbsp; 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20954">&nbsp; 17662 &nbsp; &nbsp; &nbsp; &nbsp;3288 &nbsp; &nbsp; &nbsp; &nbsp; 30 &nbsp; &nbsp; &nbsp; &nbsp; 70 &nbsp; &nbsp; 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20955">&nbsp; 17663 &nbsp; &nbsp; &nbsp; &nbsp;3288 &nbsp; &nbsp; &nbsp; &nbsp; 31 &nbsp; &nbsp; &nbsp; &nbsp; 70 &nbsp; &nbsp; 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20956">&nbsp; 17664 &nbsp; &nbsp; &nbsp; &nbsp;3288 &nbsp; &nbsp; &nbsp; &nbsp; 32 &nbsp; &nbsp; &nbsp; &nbsp; 70 &nbsp; &nbsp; 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20957">&nbsp; 17665 &nbsp; &nbsp; &nbsp; &nbsp;3288 &nbsp; &nbsp; &nbsp; &nbsp; 33 &nbsp; &nbsp; &nbsp; &nbsp; 70 &nbsp; &nbsp; 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20958">&nbsp; 17666 &nbsp; &nbsp; &nbsp; &nbsp;3288 &nbsp; &nbsp; &nbsp; &nbsp; 34 &nbsp; &nbsp; &nbsp; &nbsp; 70 &nbsp; &nbsp; 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20959">&nbsp; 17667 &nbsp; &nbsp; &nbsp; &nbsp;3288 &nbsp; &nbsp; &nbsp; &nbsp; 35 &nbsp; &nbsp; &nbsp; &nbsp; 70 &nbsp; &nbsp; 0.00</div><div id="yui_3_16_0_ym19_1_1474728565115_20960">&nbsp; 17668 &nbsp; &nbsp; &nbsp; &nbsp;3288 &nbsp; &nbsp; &nbsp; &nbsp; 36 &nbsp; &nbsp; &nbsp; &nbsp; 70 &nbsp; &nbsp; 0.00</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474728565115_20961">&nbsp; 17669 &nbsp; &nbsp; &nbsp; &nbsp;3288 &nbsp; &nbsp; &nbsp; &nbsp; 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.&nbsp;</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).&nbsp;</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.&nbsp;</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>