Shell Script Parser
How do I parse out the fatal error and accumulate to total errors if I have a string like below. So the total errors will be 5.
"TEST 1: 3 Fatal Errors TEST 2: 2 Fatal Errors TEST 3: 0 Fatal Errors" Thanks in advance. |
What have you tried? You could parse that line with awk, bash or one of several languages.
|
If the format is always the same, awk sound perfect to me.
|
All times are GMT -5. The time now is 02:34 AM. |