Originally Posted by reginah72
It gave me the number 1509. Thank you so much for helping me out. Now I'm not going to fail and you have made me want to learn more about Linux. Thank you again
What I would do, if I were you, is just check that the number of Firefox lines + the number of MSIE lines + the number of non-MSIE/Firefox lines equals the entire number of non-blank lines in the logfile.
To get a count of all the non-blank lines, use
grep -c . example.log
(. means find something with at least one character)
I'm glad you want to learn more. As you can see, and we've only scratched the surface, the possibilities of what you can do are endless.
Just remember, (i) start off simple and then make things gradually more complex; (ii) think in English (or your native language) about what you are going to do before you code it; (iii) constantly test things to see that they are working like you think they should, and use man to learn more about the commands.
All the best!