Hi
I am new in perl script . I read tuttorial and other but now I need help for my first script .
I have file with 13000 rows
Where the row have event with "critical"
I need to overwrite "TRAP" variable with "2"
Where the row have event with "warning"
I need to overwrite "TRAP" variable with "1"
Where the row have event with "informational"
I need to overwrite "TRAP" variable with "0"
thanks
I am new in perl script . I read tuttorial and other but now I need help for my first script .
I have file with 13000 rows
Where the row have event with "critical"
I need to overwrite "TRAP" variable with "2"
Where the row have event with "warning"
I need to overwrite "TRAP" variable with "1"
Where the row have event with "informational"
I need to overwrite "TRAP" variable with "0"
thanks