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

unix Using Regular Expressions with grep 12-Use grep to find the text line in ma

ID: 3605460 • Letter: U

Question

unix

Using Regular Expressions with grep 12-Use grep to find the text line in manual.txt file. 13-Use grep with the period regular expression () to find the text line in any place except the beginning of the lines. Use the appropriate flag to display the line numbers. 14-Find the common letters (pattern) between the words information and international then use grep with periods to find and display the lines where these words exist. 15-Change the pattern you found in the previous task (Task 14) to include the word description as well, then type the new grep command. Use the appropriate flag to display the line numbers. 16- Use grep to find the word If in manual.txt file. 17-Use grep with the regular expression ( ) to find the word If at the beginning of lines. 18- Combine the regular expressions (.) and () to find the lines starting with any character, but the second character is the letter o. 19-Find and display all lines ending with the letter 1. 20-Type the below command and make sure it returns the correct results. grep "x*z" manual.txt 21-Use grep to find the text $MAN in manual.txt file. 22- Find all lines containing caret symbols (A). 23-Find all lines containing asterisks ( * ). 24- Find all lines ending with periods. 25-Using brackets, find the instances of the words optiono1, optiono2, and optiono3 (but not option04). 26-Using find all instances of 000 in manual.txt file.

Explanation / Answer

Answering only the first question since there are multiple questions.

12. Use grep to find the text line in manual.txt file.