I want to parse a log file and use regexp to filter some patterns and put them in output log file.
I have the script.
1- put the -p and -ig inside text files and feed it to code. like this:
[login to view URL] -i [login to view URL] -o [login to view URL] -p [login to view URL] -ig [login to view URL]
[login to view URL] is:
warning| info
[login to view URL] is:
error| error:
2- in the [login to view URL], each code has a description which can be found by running "man code". like: man PTE-003
we want to add the name part of each code in the [login to view URL]
run it as: tclsh8.5 [login to view URL] -i [login to view URL] -o [login to view URL] -p "warning" -ig "error|info"
description of the codes can be found by running: "man code" for example: in pt-shell "man ABS-351"
it should parse the name part and put it in [login to view URL]
another way to do it is to find the code in docs folder
Hi, i'm a professional Automation Developer, and i can help you with this script automation task, please provide me with more details if you are interested, thanks.