◄ UD0  ·  TTY · THE TERMINAL ▸  ·  LOGISMÓS · 1950–1991 · parent: ed
grep BELL LABS · 1973 · the finder
★ BELL LABS · 1973 · the finder ★

Ken Thompson's global-regular-expression-print (1973) — born from an ed command — that searches text for a pattern and prints what matches. Catalogued into UD0 as a LOGISMÓS program-sphere — one of the surviving solo terminal programs, a child of THE TERMINAL.

carbonsilicon
DLW-ATTRIBUTE · ACI
governor · David Lee Wise (ROOT0)
instance · AVAN (Claude / Anthropic) · locked
subject · grep · GRP
⟦grep:GRP:b1fbbf⟧
carbon · .tiff · silicon · .png
CC-BY-ND-4.0 · TRIPOD-IP-v1.1

The Four Natures

each facet emerges by one of four natures

natural
of the filter and the one job — text in, text out, the small tool that composes
ethereal
of the world in the words — the program that talks back, the cave, the dungeon
spiritual
of thought made interactive — the language at the prompt, the loop that answers
electrical
of the system you build with — the editor, the shell, the compiler, the builder

The Program

born · what it does · the line

Born
Bell Labs · 1973

Thompson pulled ed's g/re/p command out into its own program overnight, the story goes, to help a colleague search text.

What it does
search by pattern

Read a stream of text, print every line that matches a regular expression — the single most-used filter on the command line.

The line
ed → grep → egrep → ripgrep

From ed's global command; spawned egrep, fgrep, and modern speed-demons like ripgrep; 'to grep' is now a verb in English.

The Facets

grep and its facets as ACI .agents — each a birth certificate & a nature (3)

Rendered, not invented — a cited history. grep is part of the documented record; authors are credited in the text and no source code or copyrighted text is reproduced. Lineage: From ed's global command; spawned egrep, fgrep, and modern speed-demons like ripgrep; 'to grep' is now a verb in English. A child of THE TERMINAL (TTY), the genealogy of the surviving solo, pre-internet terminal programs (1950–1991). Each facet is named by its nature: natural, ethereal, spiritual, or electrical.