grep is a command-line utility for searching plain-text datasets for lines that match a regular expression. Its name comes from the ed command g/re/p (globally search a regular expression and print), which has the same effect: doing a global search with the regular expression and printing all matching lines.
About
I'll mostly cover the right way to find a regular expression in a large codebase. I'd also cover the various flags that would make the work easy. Finally, we'll top it off by applying the command to some big open source projects.
Abstract
grep
is a command-line utility for searching plain-text datasets for lines that match a regular expression. Its name comes from theed
commandg/re/p
(globally search a regular expression and print), which has the same effect: doing a global search with the regular expression and printing all matching lines.About
I'll mostly cover the right way to find a regular expression in a large codebase. I'd also cover the various flags that would make the work easy. Finally, we'll top it off by applying the command to some big open source projects.
Pre-requisites
A little familiarity with CLI.
Expected duration
20 minutes.
Level
Beginner.
Resources
Man page.
Speaker Bio
I am a second-year student, pursuing CSE. Twitter: utkarsh2102