Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In the directory /usr/share/dict there is a file called words. Use it to answer

ID: 3799147 • Letter: I

Question

In the directory /usr/share/dict there is a file called words. Use it to answer the following.
    a. How many lines in the file?
   b. What command did you run to find out?
   c. How many entries start with the letter "s" (lower case or upper)?
   d. What command did you run to find out?
   e. There is only one word that ends "ozz". What is it?
   f. What command did you run to find out?

This is what I have.. having a hard time finding the command for F

a. 479829

b. cat words| wc –l

c. 51774

d. grep -E '^s|^S' words| wc –l

e. schnozz

f.

Explanation / Answer

For question F , we need to use grep command with -w option to fetch the words .also we need regular expression to find word ending with "ozz".

Command is :

grep -w 'ozz$' words