illustration for Use Grep for Fast Search from the Command Line
pro

Use Grep for Fast Search from the Command Line

Instructor

Bonnie Eisenman

24m closed-captioning
·
13 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.6
972
people completed
Published 8 years ago
|
Updated 4 years ago

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.

Learner Reviews

  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    How will you use what you learned from this course?

    Need more examples with the Infrastructure Engineer respective, like looking something in system logs, configuration directory, docker logs, kubernetes logs , yaml/json files.

    Mrunal Trivedi
    5 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Command line wizardry. Much appreciated!

    Alex Jacobs
    5 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What would make this course a 7 for you?

    More handy grep commands. For example search for files contains two patterns, or three. Grep only first result. Grep the first numeric value on line, or the second. Grep some common patterns, like a date, phone number, email.

    Niklas
    5 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Great presentation, short and straight to the point videos. Got a lot of useful examples. Thank you Bonnie!

    Ivan Pankratov
    6 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    I like this because it is concise and has a lot of realistic use cases as well as explanations for the options used.

    Atul
    6 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Great Intro Course

    I learned a bunch in 24 minutes. It didn't require me to bring too much prior experience with command line tools, grep or RegEx, but I learned buts about all of the above.

    Bryan Swagerty
    6 years ago