CIT052 Index > grep Exercise 1

grep Exercise 1

Copy this file grepdata.txt and then write a series of grep statements that do the following:

Write grep statements that use command-line options along with the pattern to do the following:

Save these statements in a file named in the form

lastname_firstname_grep1.sh

and email it to me. So, for example, if your name is Joe Doakes, your file would be named doakes_joe_grep1.sh.

Your patterns should work in any generic file of this sort. They should not be dependent upon the data in this particular file; if I add more lines of the same form to the file, your patterns should still work.