06-28-2005
11,
0
Join Date: Jul 2004
Last Activity: 24 August 2017, 6:30 AM EDT
Location: PUNE
Posts: 11
Thanks Given: 0
Thanked 0 Times in 0 Posts
Script help
Hi,
Many thanks for the help.
I got the output I wanted, however, I would like to format the output following ;
If from 3rd line Alert type is "FileSystem" then I need to prefix it with "NV001 : <rest of string>
If from 3rd line Alert type is "running or RUNNING" then I need to prefix it with "NV002 : <rest of string>
If from 3rd line Alert type is "FTM files or File not received" then I need to prefix it with "NV003 : <rest of string>
Further, I would like extract the count of NV001,NV002,NV003 from the file and append at the end of above string something like;
NV001: <rest of string>:Count=<>
Could you please assist how can I achieve this.