Difficulty: Lv ★★★ | Prior Knowledge: Intermediate 4, Week 6
Goal
CLI for writing, viewing, and searching diary entries by date
Requirements
- Diary is
diary/YYYY-MM-DD.txt - Commands:
write,read <date>,list,search <keyword> - Ask whether to overwrite if rewriting on the same date
- Multi-line input (end with two blank lines)
Challenge Task
- Keyword search shows matching line + date
- Statistics (total days written, average length)