- description
- # Create index file
## Overview
This segment, titled "Create index file," is a portion of a shell script designed to generate an `INDEX.md` file for a collection of William Shakespeare's complete works. It details the plays categorized into Tragedies, Comedies, and Histories, along with their publication years and corresponding PDF filenames. This segment was extracted from the [download_shakespeare.sh](arke:01KG89K4MCC02B3RKGNV2XEV39) file on January 30, 2026.
## Context
This segment is part of the larger [Shakespeare Complete Works Download Script](arke:01KG8AWGEP5VC33Q2EJ85FCB6J), a technical manual that facilitates the download and organization of public domain PDFs from the Internet Archive into the [Shakespeare](arke:01KG89JREDR8WY5QQGYR5FZRDY) collection. It follows the "Download Complete!" message ([Download Complete!](arke:01KG8AWVSH45ZWDNAH84KSBP1Q)) within the script's execution flow and precedes the section detailing poetry editions ([Poetry (6)](arke:01KG8AWVSN68YT0WB8CZTR678R)). The script's purpose is to create a comprehensive, locally stored collection of Shakespeare's works.
## Contents
The segment contains markdown-formatted text that outlines the structure of the "Shakespeare Complete Works Collection." It lists:
* **Tragedies (10 plays):** Including *Titus Andronicus* (1901), *Romeo and Juliet* (1873), *Hamlet* (1890), and *Macbeth* (1871).
* **Comedies (16 plays):** Such as *The Tempest* (1901, illustrated by R.A. Bell), *A Midsummer Night's Dream* (1908, illustrated by Rackham), and *Twelfth Night* (c.1900, illustrated by Heath Robinson). Notably, some comedies are marked as illustrated.
* **Histories (10 plays):** Including *King John* (1901), *Richard II* (1901), and *Henry V* (1901).
Each entry provides the play number, title, year of publication, and the filename of its corresponding PDF. The content serves as an index for the downloaded collection, providing an organized overview of the plays.
- description_generated_at
- 2026-01-30T20:53:27.729Z
- description_model
- gemini-2.5-flash-lite
- description_title
- Create index file
- end_line
- 283
- extracted_at
- 2026-01-30T20:53:12.673Z
- extracted_by
- structure-extraction-lambda
- start_line
- 223
- text
- # Create index file
cat > "$BASE_DIR/INDEX.md" << 'INDEXEOF'
# Shakespeare Complete Works Collection
## Public Domain PDFs from Internet Archive
---
## Tragedies (10)
| # | Play | Year | File |
|---|------|------|------|
| 1 | Titus Andronicus | 1901 | `tragedies/01_titus_andronicus_1901.pdf` |
| 2 | Romeo and Juliet | 1873 | `tragedies/02_romeo_and_juliet_1873.pdf` |
| 3 | Julius Caesar | 1902 | `tragedies/03_julius_caesar_1902.pdf` |
| 4 | Hamlet | 1890 | `tragedies/04_hamlet_1890.pdf` |
| 5 | Othello | 1886 | `tragedies/05_othello_1886.pdf` |
| 6 | King Lear | 1860 | `tragedies/06_king_lear_1860.pdf` |
| 7 | Macbeth | 1871 | `tragedies/07_macbeth_1871.pdf` |
| 8 | Antony and Cleopatra | 1891 | `tragedies/08_antony_and_cleopatra_1891.pdf` |
| 9 | Coriolanus | 1891 | `tragedies/09_coriolanus_1891.pdf` |
| 10 | Timon of Athens | 1901 | `tragedies/10_timon_of_athens_1901.pdf` |
---
## Comedies (16)
| # | Play | Year | Illustrated | File |
|---|------|------|-------------|------|
| 1 | The Tempest | 1901 | ✓ R.A. Bell | `comedies/01_tempest_1901_illustrated_bell.pdf` |
| 2 | Two Gentlemen of Verona | 1910 | | `comedies/02_two_gentlemen_of_verona_1910.pdf` |
| 3 | Merry Wives of Windsor | 1905 | | `comedies/03_merry_wives_of_windsor_1905.pdf` |
| 4 | Measure for Measure | 1884 | | `comedies/04_measure_for_measure_1884.pdf` |
| 5 | Comedy of Errors | 1901 | | `comedies/05_comedy_of_errors_1901.pdf` |
| 6 | Much Ado About Nothing | 1907 | | `comedies/06_much_ado_about_nothing_1907.pdf` |
| 7 | Love's Labour's Lost | 1901 | | `comedies/07_loves_labours_lost_1901.pdf` |
| 8 | **Midsummer Night's Dream** | 1908 | ⭐ **Rackham** | `comedies/08_midsummer_nights_dream_1908_illustrated_rackham.pdf` |
| 9 | Merchant of Venice | 1914 | ✓ Linton | `comedies/09_merchant_of_venice_1914_illustrated_linton.pdf` |
| 10 | As You Like It | 1877 | | `comedies/10_as_you_like_it_1877.pdf` |
| 11 | Taming of the Shrew | 1900 | ✓ | `comedies/11_taming_of_the_shrew_1900_illustrated.pdf` |
| 12 | All's Well That Ends Well | 1904 | | `comedies/12_alls_well_that_ends_well_1904.pdf` |
| 13 | **Twelfth Night** | c.1900 | ⭐ **Heath Robinson** | `comedies/13_twelfth_night_1900_illustrated_heath_robinson.pdf` |
| 14 | Winter's Tale | 1890 | | `comedies/14_winters_tale_1890.pdf` |
| 15 | Pericles | 1898 | ✓ Frontispiece | `comedies/15_pericles_1898_illustrated.pdf` |
| 16 | Two Noble Kinsmen | 1634 | ✓ Woodcuts | `comedies/16_two_noble_kinsmen_1634_first_quarto_woodcuts.pdf` |
---
## Histories (10)
| # | Play | Year | File |
|---|------|------|------|
| 1 | King John | 1901 | `histories/01_king_john_1901.pdf` |
| 2 | Richard II | 1901 | `histories/02_richard_ii_1901.pdf` |
| 3 | Henry IV Part 1 | 1901 | `histories/03_henry_iv_part_1_1901.pdf` |
| 4 | Henry IV Part 2 | 1921 | `histories/04_henry_iv_part_2_1921.pdf` |
| 5 | Henry V | 1901 | `histories/05_henry_v_1901.pdf` |
| 6 | Henry VI Part 1 | 1918 | `histories/06_henry_vi_part_1_1918.pdf` |
| 7 | Henry VI Part 2 | pre-1923 | `histories/07_henry_vi_part_2_pre1923.pdf` |
| 8 | Henry VI Part 3 | 1895 | `histories/08_henry_vi_part_3_1895.pdf` |
| 9 | Richard III | 1896 | `histories/09_richard_iii_1896.pdf` |
| 10 | Henry VIII | 1901 | `histories/10_henry_viii_1901.pdf` |
---
- title
- Create index file