How to Access variable from log file?

I am unable to complete " Count the occurrences of a successful login" because after getting inside ~/workspace/QBox/logs/ i can’t access and store variable 230 Login successful
#Module1 #milestone_3

you need to use the grep command

Why I am getting permission denied,if try to execute the sh file

Check this , this will solve your problem

1 Like

Use grep command to find lines with string/pattern and use wc command to count lines which contains that particular string or pattern.

1 Like

Thankyou so much… @amanagar @archie_95