How to check the exit status code
When a command finishes execution, it returns an exit code. The exit code is not displayed on the screen by default. To examine the exit code, you need to examine a special variable, “$?”
Say, you are searching for a string in a text file.
$ grep x1y2z3 […]
Recent Comments