YoVDO

Use Grep for Fast Search from the Command Line

Offered By: egghead.io

Tags

Linux Courses Regular Expressions Courses grep Courses

Course Description

Overview

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.

Syllabus

  • 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

Taught by

Bonnie Eisenman

Related Courses

Advanced Storage and Device Administration in Linux
A Cloud Guru
Becoming Familiar with SUSE Linux Enterprise
A Cloud Guru
BYOL: Build Your Own Linux From Scratch
A Cloud Guru
CentOS Enterprise Linux 8 Essentials
A Cloud Guru
CompTIA Linux+ XK0-004 Certification Exam
A Cloud Guru