Computer Engineering 176:
Assignment 5 Solutions

Here is the code for the basename script:

And, here is the code for the corresponding dirname script:

Here is the code for the head script:

Finally, here is the code for the grep script:

The script given in the assignment implements kwic: