← Back to problems
UNSW COMP2041 · easy

21T2 Q1 — grep on awards.psv

awards.psv (path in $1) has 6 |-separated fields: Award Name | Award Year | Winner Name | Winner Gender | Winner Country | Winner Birth Year. Using grep, print every line whose Award Name begins with Nobel Prize and whose Winner Gender is F.

Note: the exam's original four grep sub-questions were not in the available source; this is one representative grep-regex task on the same data.


POSIX shell only (#!/bin/dash); standard UNIX filters. From COMP2041/9044 — adapted for deterministic autotest.