← Back to problems
UNSW COMP2041 · easy

22T2 Q1 — Count enrolments in a program (shell)

Enrolment data on stdin, one record per line: Course|StudentID|Name|Plan|Gender, where Plan is PROGRAM/STAGE. Print a single number: how many records are in program 3711.


POSIX shell only (#!/bin/dash); standard UNIX filters. From COMP2041/9044 22T2 Final.