CS/CE 218 Quiz #4 September 18, 1991 1. (2 pts) Fill in the following table. An ``equivalent regular expression'' is a regular expression that matches the same characters, no more and no less than the equivalent shell wild card expression (except that / cannot appear in a file name, and so cannot be matched by a wild card). For example, the shell wild card expression x*y is equivalent to the regualar expression x.*y shell wild card expression | equivalent regular expression --------------------------------|------------------------------ x*y | x.*y z??? | ?[1-33] | 2. (7 pts) Suppose that the following data are in the file ``id-index'' (the file contains no blanks, only tabs). ---------- ch 5 ch 3 xyz 4 i 5 i 4 ---------- Suppose that the following data are in the file ``new'' ---------- zippy zaphod albert ---------- What then is the output of the following command? (An argument of - to paste means "standard input", not a file named ``-''.) cut -f2 id-index | sort -u | paste new -