Sponsored Content
Full Discussion: another textprocessing
Top Forums Shell Programming and Scripting another textprocessing Post 302500419 by jurgen on Monday 28th of February 2011 02:12:26 PM
Old 02-28-2011
another textprocessing

Hello, maybe too easy but I dont find the way....
I am processing (ksh) hourly a textfile with following content:
Code:
/inputfile/data/xxx/yyy/update/name_20110128.txt,123,LED,31....
/inputfile/data/xxx/yyy/update/name_20110127.txt,128,EPF,11....

the length of the row (after *.txt) is varying but before .txt is always the date.I would like to copy the date und add it just after update/ to get following structure:
Code:
/inputfile/data/xxx/yyy/update/20110128/name_20110128.txt,123,LED,31....
/inputfile/data/xxx/yyy/update/20110127/name_20110127.txt,128,EPF,11....

Does anyone has an idea/easy way how to solve this issue?

Thanks in advance....
 
X2SYS_MERGE(1gmt)					       Generic Mapping Tools						 X2SYS_MERGE(1gmt)

NAME
x2sys_merge - Merge an updated COEs tables SYNOPSIS
x2sys_merge -Amain_COElist.d -Mnew_COElist.d DESCRIPTION
x2sys_merge will read two crossovers data base and output the contents of the main one updated with the COEs in the second one. The second file should only contain updated COEs relatively to the first one. That is, it MUST NOT contain any new two tracks intersections (This point is NOT checked in the code). This program is useful when, for any good reason like file editing NAV correction or whatever, one had to recompute only the COEs between the edited files and the rest of the database. -A Specify the file main_COElist.d with the main crossover error data base. -M Specify the file new_COElist.d with the newly computed crossover error data base. OPTIONS
No space between the option flag and the associated arguments. EXAMPLES To update the main COE_data.txt with the new COEs estimations saved in the smaller COE_fresh.txt, try x2sys_merge -ACOE_data.txt -MCOE_fresh.txt > COE_updated.txt SEE ALSO
x2sys_binlist(1), x2sys_cross(1), x2sys_datalist(1), x2sys_get(1), x2sys_init(1), x2sys_list(1), x2sys_put(1), x2sys_report(1) GMT 4.5.7 15 Jul 2011 X2SYS_MERGE(1gmt)
All times are GMT -4. The time now is 10:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy