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?

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


Answer:
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

Computer Science & Information Technology

You might also like to view...

In Word, a list of templates, or ________ documents, displays on the right

A) purchased B) single-spaced C) preformatted D) non-printing

Computer Science & Information Technology

To create a query using multiple tables, a ________ must exist between common fields

A) join line B) key C) relationship D) thread

Computer Science & Information Technology

If there is a power failure while you are working on a database, all your changes will be lost unless you saved them first

Indicate whether the statement is true or false

Computer Science & Information Technology

The ____ is an OSI protocol that specifies how routers communicate with routers in different domains.

A. Internet Routing Protocol B. Inter-Domain Running Protocol C. Inter-Domain Routing Protocol D. Inter-Division Routing Protocol

Computer Science & Information Technology