Using sed to make indexes for books (long)
Summary
A historical guide detailing how to build a book index using sed, including sorting with GNU sort for proper numeric and case-insensitive order, a two-step approach to concatenate lines, and robust fixes for input errors. It discusses the limitations of the initial sed script and presents a v1.2 solution with portability notes and input-validation guidance.