Module 3 Test

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

When using the vi text editor, which of the following keys, when in command mode, will move to the last line in the document? A. G B. L C. P D. W

A. G

Garrett wants to search through a csv file to find all rows that have either the name John or Bob in them and display them out to the terminal. Which of the following commands could Garrett use to perform this search? A. grep -E "(John|Bob)" salesemployees.csv B. grep (John|Bob) salesemployees.csv C. grep -E (John|Bob) salesemployees.csv D. egrep (John|Bob) salesemployees.csv

A. grep -E "(John|Bob)" salesemployees.csv

Chase is trying to extract records for employees 423 through 428 out of a comma separated values file and store them in another one. Which of the following commands would accomplish this? (Choose all that apply.) A. cat employees.csv | grep 423,424,425,426,427,428 > employees.csv B. cat employees.csv | grep "42[3-8]" > employees-newhires.csv C. grep "42[3-8]" employees.csv > employees-newhires.csv D. grep "42[3-8]" < employees.csv > employees-newhires.csv

B. cat employees.csv | grep "42[3-8]" > employees-newhires.csv C. grep "42[3-8]" employees.csv > employees-newhires.csv D. grep "42[3-8]" < employees.csv > employees-newhires.csv

Jo has received a text file which contains multiple instances of his name spelled correctly as well as multiple instances spelled as Joe. Which of the following commands would search a text file for any occurrences of either spelling and display them out the terminal? (Choose three.) A. grep "Joe?" document1.txt B. grep -E "Joe?" document1.txt c. grep "Joe*" document1.txt d. grep -E "Joe*" document1.txt

B. grep -E "Joe?" document1.txt C. grep "Joe*" document1.txt D. grep -E "Joe*" document1.txt

When using the vi text editor, which of the following keys, when in command mode, will change to insert mode and place the cursor at the end of the current line? A. i B. a C. | D. A

D. A

Kate wants to compare two files to identify what might have changed from one version to another. Which of the following commands can she use to do this? A. match document1.txt document2.txt B. version --compare document1.txt document2.txt C. compare document1.txt document2.txt D. diff document1.txt document2.txt

D. diff document1.txt document2.txt

Which of the following commands will not interpret regular expressions, which translates into faster results being returned? (Choose all that apply.) A. grep B. grep -F C. egrep D. fgrep

b. grep -F d. fgrep

Mike has changed directory into one subdirectory after the next and has lost track of where he's at in the directory tree. Which of the following commands can he use to tell him the full path to the current subdirectory he is in? a. cd - b. pwd c. cwd d. ls -dir

b. pwd


Ensembles d'études connexes

Lecture 9- Attraction and Close Relationships

View Set

Lecture 18 Hemolytic Anemias Immune Anemias

View Set

Iowa Life And Health insurance Exam

View Set

Precal Lesson 3 Unit 1: Quick Check

View Set

Exam 2 lecture 2 chapter 11 obesity

View Set

Master Series 7 Exam Practice Questions

View Set