Halloween Sale
Unlock all premium questions for over 30% off
Grep Command With Context Lines
Medium
Question
This question asks for a bare-bones grep: report every line that contains a given target, plus some neighboring lines for context. Part 1 sees the whole document up front; Part 2 receives it as a stream.
...
More Google interview questions
- Design Unix Find Command With Filtershard
- Paint a Row of Houseshard
- Employee Shift Timeline Intervalsmedium
- Two Car Destinationsmedium
- Rearrange House Numbers in Neighborhoodsmedium
- Count Distinct Elements in Each Windoweasy
- Merge Two Sorted Interval Listsmedium
- Fill Equation with Missing Operatorshard
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.