Word anchor versus line anchor, on the same fixture
Word anchor versus line anchor, on the same fixture
Answer
grep '\<Ke' roster grep '\<K' roster grep '^K' roster
Two lines, then three, then two again. Dropping the e adds Kowalski, whose capital K starts a word mid-line; switching to the line anchor drops it again. That single line in the fixture is what separates the two anchors.
Sarwar & Koretsky 3e ch7 §7.5–7.6; POSIX.1-2024 XBD §9.3.5 (bracket expressions)