CompTIA Linux+ (XK0-004) — Question 155
A systems administrator needs to retrieve specific fields from a CSV file. Which of the following tools would accomplish this task?
Answer options
- A. awk
- B. sort
- C. print
- D. echo
Correct answer: A
Explanation
The correct answer is A, awk, which is specifically designed for pattern scanning and processing, making it ideal for extracting fields from structured text files like CSV. The other options, such as sort, are not intended for field extraction; instead, they perform sorting operations, while print and echo are not tools meant for processing CSV data.