LAB5-CP3-Q1
wc/head/tail/cut
Checkpoint 3: File Utilities
5 pts
Use wc -l, head -n 5, tail -n 5, cut -d, -f 2 on a CSV.
Exam questions that reference this lab question
- CSCD240-E1-A-Q37 directly_tests data.csv has comma-separated records. Print just the second column.
- CSCD240-E1-A-Q50 directly_tests auth.log line format "2026-04-14 08:31 FAIL user=alex src=10.x". Print top-3 FAIL source IPs, count first, most-frequent first.
- CSCD240-E1-B-Q21 directly_tests Print the second column of data.csv (comma-separated).
- CSCD240-E1-C-Q15 directly_tests Which pipeline counts distinct values in column 1 of a CSV?