< Previous | Contents | Next >
Extra Credit
It is important to study the programs in this chapter carefully and have a complete under- standing of the way they are logically structured, as the programs to come will be increas- ingly complex. As an exercise, rewrite the programs in this chapter using the test com- mand rather than the [[ ]] compound command. Hint: Use grep to evaluate the regu- lar expressions and evaluate the exit status. This will be good practice.