I just need help to format log file that contain huge amont of lines:
Here is what I am getting :
STAS022 RC = 0 I Suppression de /OPERATIONNEL/SATURNE/PGN/HD/SATURNE_1DAV_20100415_20110415_ISI_R20110430.NC effectuee
STAS034 RC = 0 I Deroulement correct
STAF067 RC = 9 E Fichier /OPERATIONNEL/SATURNE/PGN/HD/SATURNE_1DAV_20100430_20110430_ISI_R20110430.NC inexistant ou droit insuffisant
STAS035 RC = 9 W Liste traitee partiellement
I tested your code, your results gets some remaining "Suppression" and "Fichier" unexpected (according to the specifications) occurrence before the /OP* strings.
Is there a way to do not keep "Fichier" in your code ?
I will insert your code on a shel script so it will be better for me to do not insert a one line code ..
Thanks ctsgnb, I will try your code ...
Dear CSTNGB,
your line code work as expected .... Thanks a lot, but , do you thinks it's possible to send it again in shell script way instead of one line code ? If not don't worry, I will keep it in this way.
Anyway thnaks a lot for your help ; )
In fact I was testing on files that were not existing and the code was working fine, but the log file may have some file existing ans some other not, but the line code works only if the statut of the file is "Fichier inexistant"