Créer un script perl qui reçoit en argument 2 fichiers logs et génère un fichier output.
Exemple Input:
00:05:02 postfix/clea:0002:9999:2:1
3DE2710057: message-id=<20091213230502.3DE2710057@linux.local>
Exemple Output:
postfix/clea|0002|9999|2|1|3DE2710057: message-id=<20091213230502.3DE2710057@linux.local>|15/12/2009 00:05:02|15/12/2009 00:005:02|1
mon problème pour le moment est le suivant:
1) comment normaliser toute les lignes de fichier input (suppression d'espace)
2) concaténation des 2 lignes.
please some help!! thx
Best Regards.
Partager