| grep '*[[:upper:]][[:upper:]][[:upper:]]*' 13. Which regular expression will find all lines in the file termApplications that contain valid birth month in the form: 1 letter month abbreviation followed by a 2 digit year, where the month abbreviation can only be: a, d, f, j, m , n, o, or s. (So a97 and J04 would match, but not t45) | [adfjmnosADFJMNOS][0-9][0-9] | | [adfjmnosADFJMNOS,0-9,0-9] | | *[adfjmnos][ADFJMNOS][0-9][0-9]* | | [adfjmnos][ADFJMNOS][0-9][0-9] 14. What is the output of the following? cat finalFile 1 12 123 1234 12345 bash-3.2$ grep '...' finalFile | wc -l | 4 or more 15. Write a regular expression that will find all lines in a file named meetingMinutes that end in a question mark '?' | '*?$' 16. Identify the regular expression meta-character with the same interpretation as the the filename wildcard | square brackets 17. Which of the following is NOT a valid metacharacter for regular expressions? | all are valid metacharacters for regular expressions | | ^ 18. What is the output of the following: $ ls public_html/gifs | sort | grep '.' | wc -l | the number if files in the gifs subdirectory | | alphabetical display of all files in the gifs subdirectory | | a sorted list of all lines in all files in the gifs subdirectory 19. What permissions are necessary for the following: grep 'times' /local/finalMSG | both of the above are true | | r permission on the file finalMSG | | x permission on the directory /local 20. Which command has an command option to ignore any difference in upper or lower case letters? | none of the above 21. $ cat poets Hafiz oliver HD redHawk Which displays the following? 2:oliver | grep -nvi H poets 22. Given the following: $ cat poets.data mary oliver 16 octavio paz 8 sharon olds 4 wallace stevens 24 red hawk 5 What is printed? grep eliot poets.data | bash error: eliot is not in poets.data 23. In vi what would I type to replace ALL occurrences of the word Unix with the word Linux? | s/Unix/Linux/ 24. Which does not create a file called ipassed that contains IPassed? | pico ipassed IPassed Press:control-X | | cat >ipassed IPassed Press:control-D | | echo IPassed>ipassed 25. Which is true about searching with grep and find? | grep searches the contents of a group of files | | grep searches the contents of a single file | | find searches the names of files in a group of directories | | | | | | | | | | | | | |