Have you ever found this? cat version.log |egrep “8.1|9.2|9.0”|grep -v grep >/dev/null if [ $? -eq 0 ] What is this “$? -eq 0” condition? Here: ($?) is a return value of previous command. (-eq) means equal. As you might guessed it. And (0) is a success or found. Conclusion: if the return value of previous command is success or the particular string was found. Usually it followed by: then blablabla.
Coding is fun. It is like playing games and of course (like other games) there are goals. Since coding is easy, I think everyone can code. Me, you, your children, and the others. But, before you decided to learn to code you might want to know ‘what is programming? what is it look like? what I should know about it?’ Yes, there are many things about programming you should know (you’ll know more later on).