Use Grep for Fast Search from the Command Line

0
Language

Access

Free

Certificate

Free

Level

Beginner

Learn to search and explore your codebase efficiently with grep and find. Find answers quickly, search recursively, and use regular expressions to look for specific phrases. Improve your coding workflow and work faster with these powerful command-line utilities.

Add your review

CMD+F in your text editor can only get you so far! In this course, we will learn to use grep and find, two powerful command-line utilities, to search through and explore our codebase. Learn to search specific files and folders, using regular expressions to look for — or ignore! — particular phrases. We’ll cover how to search recursively, get more context on your results, and some simple tricks to make your searches faster and more targeted.

Once you’re familiar with grep and find, you’ll be able to quickly answer questions such as: Do I use this function anywhere other than my tests? Where does this file get imported? Whether you’re working on a new feature, reading a codebase for the first time, or refactoring existing code, grep and find can help you work faster and more effectively.

Course Content

Search the contents of files using grep

Search directory contents recursively using grep

Use find to search for filename patterns

Search matching files by combining find and grep with xargs

Search the contents of a git repository with git grep

Show context around matches using grep

Search for basic patterns using grep

Use grep’s extended regular expressions to find complex patterns

Search for optional patterns with grep OR

Specify line beginning and end in patterns using grep

Match classes of characters using bracket expressions with grep

Search with groups using grep

Find matches excluding a pattern with grep

User Reviews

0.0 out of 5
0
0
0
0
0
Write a review

There are no reviews yet.

Be the first to review “Use Grep for Fast Search from the Command Line”

×

    Your Email (required)

    Report this page
    Use Grep for Fast Search from the Command Line
    Use Grep for Fast Search from the Command Line
    LiveTalent.org
    Logo