Fall SalePremium questions, over 25% offUnlock all premium questions for over 25% 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
- Maximum Flying Distancehard
- Employee Shift Timeline Intervalsmedium
- Two Car Destinationsmedium
- Rearrange House Numbers in Neighborhoodsmedium
- Count Distinct Elements in Each Windoweasy
- Merge Two Sorted Interval Listsmedium
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.