<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:13px"><div class="" style=""><span class="" style="">Hi,</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: verdana, helvetica, sans-serif; background-color: transparent; font-style: normal;" class=""><span class="" style=""><br class="" style=""></span></div><div style="background-color: transparent;" class=""><span style="color: rgb(0, 0, 0); font-family: verdana, helvetica, sans-serif; font-size: 13px; font-style: normal;" class=""> Someone please help me to correct the script written to get the data into text file. Following (no 1) script is used to get the text file but the problem is it did not break lines. The output file is attached as text file, it should be like under no 2</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: verdana, helvetica,
sans-serif; font-style: normal;" class=""><span style="background-color: transparent;" class=""><br class="" style=""></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: verdana, helvetica, sans-serif; font-style: normal;" class=""><span style="background-color: transparent;" class="">no 1: script</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: verdana, helvetica, sans-serif; font-style: normal;" class=""><span style="background-color: transparent;" class="">....................................................................</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: verdana, helvetica, sans-serif; font-style: normal;" class=""><span style="background-color: transparent;" class=""><br class="" style=""></span></div><div style="background-color: transparent; color: rgb(0, 0, 0);
font-size: 13px; font-family: verdana, helvetica, sans-serif; font-style: normal;" class=""><span style="background-color: transparent;" class="">'open DM02_M.ctl'</span><br class="" style=""></div><div style="background-color: transparent;" class="">'set dbuff on'</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class=""><span style="background-color: transparent;">'set t 24'</span><br></div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">outfile='arain_1.txt'</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">'!/bin/rm -f 'outfile</div><div style="background-color: transparent;" class="">'set gxout print'</div><div
style="background-color: transparent;" class=""><br></div><div style="background-color: transparent;" class="">'set prnopts %10.3f 1 1'</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">'d lon'</div><div style="background-color: transparent;" class="">lon_data = result</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">'d lat'</div><div style="background-color: transparent;" class="">lat_data = result</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">'d rainc(t+24)+rainnc(t+24)-rainc-rainnc'</div><div style="background-color: transparent;" class="">v1_data = result</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;"
class="">i=1</div><div style="background-color: transparent;" class=""><span style="background-color: transparent;">while (i<100)</span><br></div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class=""> lons = sublin(lon_data,i)</div><div style="background-color: transparent;" class=""> lats = sublin(lat_data,i)</div><div style="background-color: transparent;" class=""> line1 = sublin(v1_data,i)</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">if (lons='' | lats='' | line1=''); break; endif</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class=""><br class="" style=""></div><div
style="background-color: transparent;" class="">if (i>1)</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">rc = write(outfile,lons' 'lats' 'line1,append)</div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">endif</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">i=i+1</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">endwhile</div><div style="background-color: transparent;" class="">..................................................................</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0);
font-size: 13px; font-family: verdana, helvetica, sans-serif; font-style: normal;" class="">no 2: Needed output</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: verdana, helvetica, sans-serif; font-style: normal;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">79.393 7.414 5.688 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">79.442 7.414 7.454 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">79.491 7.414 21.994 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;"
class="">79.541 7.414 32.329 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">79.590 7.414 30.025 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">79.639 7.414 19.323 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">79.689 7.414 5.054 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">79.738 7.414 2.902 </div><div style="background-color: transparent;" class="">
</div><div style="background-color: transparent;" class="">79.787 7.414 0.208 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">79.836 7.414 3.580 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">79.886 7.414 6.208 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">79.935 7.414 13.869 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">79.984 7.414 8.350 </div><div
style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">80.034 7.414 11.248 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">80.083 7.414 13.321 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">80.132 7.414 14.315 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">80.181 7.414 16.263 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">80.231
7.414 19.770 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">80.280 7.414 20.056 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">80.329 7.414 30.902 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">80.379 7.414 32.377 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">80.428 7.414 38.517 </div><div style="background-color: transparent;" class=""> </div><div style="background-color:
transparent;" class="">80.477 7.414 43.332 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">80.527 7.414 45.161 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">80.576 7.414 45.874 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">80.625 7.414 42.580 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">80.675 7.414 34.532 </div><div style="background-color: transparent;" class="">
</div><div style="background-color: transparent;" class="">80.724 7.414 25.229 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">80.773 7.414 15.317 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">80.822 7.414 13.750 </div><div style="background-color: transparent;" class=""> </div><div style="background-color: transparent;" class="">80.872 7.414 15.803 </div><div style="background-color: transparent;" class=""> </div><div class="" style=""><br class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px;
font-family: verdana, helvetica, sans-serif; font-style: normal;" class=""><br class="" style=""></div><div class="" style=""></div><div class="" style=""> </div><div class="" style=""><span style="font-style:italic;font-size:medium;color:rgb(76, 118, 162);font-weight:bold;font-family:'bookman old style', 'new york', times, serif;" class="">Regards,</span></div><div class="" style=""><br class="" style=""></div><div class="" style=""><span style="color:rgb(128, 128, 128);font-style:italic;font-family:'bookman old style', 'new york', times, serif;" class="">Menaka Revel</span></div></div></body></html>