Back to problems
COMP2041
22T2 Q3 — Happy directories
Print, one per line, the names of the subdirectories of the current directory that directly contain 2 or more entries (files or subdirectories). Not recursive. Names in the usual shell-glob (sorted) order.
POSIX shell only (#!/bin/dash); standard UNIX filters. From COMP2041/9044 22T2 Final.
Samples
stdin
expected
happyA happyC
shell
14