Issue
I have log text file (solution.log). How to read last two line of values and how to assign each value to previous line each word like critical =0 ,high=0,medium=0 and informational=0
Please assist on this.
solution.log
critical High Medium Low Informational
0 0 0 0 0
Solution
To read the last line you could use this:
Get-Content solution.log -tail 1
Answered By - scaler
Answer Checked By - Pedro (JavaFixing Volunteer)