hi all,
i want to extract several lines (the lines are more than one time in the file) from a file. the input looks like:
i_AttFlg1 = 16 16 16 16
i_lat = 50764695 50826421 50888144 50949866
i_lon = 95795766 95780813 95765832 95750822
i_OrbFlg = 0 0
0 0
0 0
0 0
i_spare1 = 0 0 0 0
i_LidarQF = 2 2 2 2
i_spare2 = 0 0 0 0 0 0 0 0
i_topo_elev = 0 0 0 0
i_atm_dem = 1442 1279 1315 1212
i_LRcld_bot = 32767 32767 32767 32767 32767 32767 32767
32767 32767 32767
i_LRcld_top = 32767 32767 32767 32767 32767 32767 32767
32767 32767 32767
i_LRcld_grd = 32767
i_spare3 = 0 0
i_MRcld_bot = 32767 32767 32767 32767 32767 32767 32767
32767 32767 32767
32767 32767 32767 32767 32767 32767 32767 32767 32767 32767
32767 32767 32767 32767 32767 32767 32767 32767 32767 32767
32767 32767 32767 32767 32767 32767 32767 32767 32767 32767
i_MRcld_top = 32767 32767 32767 32767 32767 32767 32767
32767 32767 32767
32767 32767 32767 32767 32767 32767 32767 32767 32767 32767
32767 32767 32767 32767 32767 32767 32767 32767 32767 32767
32767 32767 32767 32767 32767 32767 32767 32767 32767 32767
the goal is, to extract lines out of this input to an output file, for example:
i_lat
i_lon
i_MR_cld_bot
i_MR_cld_top
in case of i_MR_cld_bot and i_MR_cld_top i want to get the following lines, which belong to the variable.
i hope my explanation is comprehensible?!
please....can anybody help me??
i want to extract several lines (the lines are more than one time in the file) from a file. the input looks like:
i_AttFlg1 = 16 16 16 16
i_lat = 50764695 50826421 50888144 50949866
i_lon = 95795766 95780813 95765832 95750822
i_OrbFlg = 0 0
0 0
0 0
0 0
i_spare1 = 0 0 0 0
i_LidarQF = 2 2 2 2
i_spare2 = 0 0 0 0 0 0 0 0
i_topo_elev = 0 0 0 0
i_atm_dem = 1442 1279 1315 1212
i_LRcld_bot = 32767 32767 32767 32767 32767 32767 32767
32767 32767 32767
i_LRcld_top = 32767 32767 32767 32767 32767 32767 32767
32767 32767 32767
i_LRcld_grd = 32767
i_spare3 = 0 0
i_MRcld_bot = 32767 32767 32767 32767 32767 32767 32767
32767 32767 32767
32767 32767 32767 32767 32767 32767 32767 32767 32767 32767
32767 32767 32767 32767 32767 32767 32767 32767 32767 32767
32767 32767 32767 32767 32767 32767 32767 32767 32767 32767
i_MRcld_top = 32767 32767 32767 32767 32767 32767 32767
32767 32767 32767
32767 32767 32767 32767 32767 32767 32767 32767 32767 32767
32767 32767 32767 32767 32767 32767 32767 32767 32767 32767
32767 32767 32767 32767 32767 32767 32767 32767 32767 32767
the goal is, to extract lines out of this input to an output file, for example:
i_lat
i_lon
i_MR_cld_bot
i_MR_cld_top
in case of i_MR_cld_bot and i_MR_cld_top i want to get the following lines, which belong to the variable.
i hope my explanation is comprehensible?!
please....can anybody help me??