Hola,
Por favor, ayuda a compartir sus pensamientos acerca de cómo la suma de perfrom particular campo delimitado, y la salida a archivo en particular sobre la base de
Código HTML:
-rw-r--r-- 1 abc other 3094 Oct 19 09:40 0132019832-ps5_online_cdrm.unl
-rw-r--r-- 1 abc other 1588 Oct 19 09:47 0132019832-ps5_online_cdrn.unl
-rw-r--r-- 1 abc other 2523 Oct 19 09:54 0132019832-ps5_online_cdro.unl
-rw-r--r-- 1 abc other 947 Oct 19 10:01 0132019832-ps5_online_cdrp.unl
-rw-r--r-- 1 abc other 1300 Oct 19 10:09 0132019832-ps5_online_cdrq.unl
-rw-r--r-- 1 abc other 410 Oct 19 10:16 0132019832-ps5_online_cdrr.unl
-rw-r--r-- 1 abc other 4253 Oct 19 10:23 0132019832-ps5_online_cdrs.unl
-rw-r--r-- 1 abc other 10195 Oct 19 10:31 0132019832-ps5_online_cdrt.unl
-rw-r--r-- 1 abc other 1053 Oct 19 10:38 0132019832-ps5_online_cdru.unl
Cada archivo se han contenido como este en el que separan con delimitador "|".
Código HTML:
1603823|010|4|CDR|0132019832|||3002|0194212739|||||||N|Y|Y|2007-08-30 23:42:42|||17||-0.1|16.5951|||MO019|-0.1|16.5951|0|||
1603863|010|4|CDR|0132019832|||3002|01997564444|||||||N|Y|Y|2007-08-30 23:42:53|||14||-0.1|16.4251|||MO019|-0.1|16.4251|0|||
1603912|010|4|CDR|0132019832|||3005|0135305303|||||||N|Y|Y|2007-08-30 23:43:07|||9||-0.1|16.1851||3GMid|MO013|-0.1|16.1851|0|||
1603930|010|4|CDR|0132019832|||3002|0192504561|||||||N|Y|Y|2007-08-30 23:43:13|||17||-0.1|16.0851|||MO019|-0.1|16.0851|0|||
1603948|010|4|CDR|0132019832|||3004|0126440226|||||||N|Y|Y|2007-08-30 23:43:18|||15||-0.2|15.8851|||MO012|-0.2|15.8851|0|||
1603975|010|4|CDR|0132019832|||3007|0175152680|||||||N|Y|Y|2007-08-30 23:43:28|||13||-0.2|15.6151|||MO017|-0.2|15.6151|0|||
1603996|010|4|CDR|0132019832|||3004|0125329005|||||||N|Y|Y|2007-08-30 23:43:34|||18||-0.2|15.4151|||MO012|-0.2|15.4151|0|||
1604034|010|4|CDR|0132019832|||3005|0137508649|||||||N|Y|Y|2007-08-30 23:43:44|||11||-0.1|15.2451|||MO013|-0.1|15.2451|0|||
El resultado final de todos los valores en el campo 24 se resume a la producción y archivo a.txt decir, mientras que el campo 5 y el total suma valor deben estar separadas por "|"
Decir, cuando la producción de gato (a.txt)
0132019832 | -1,1
Necesita ayuda ...!