grep
In Chapter 3, “Getting to Know Your Computer,” you learned about the command-line tool grep
. At the time, I made grep
seem like Find for searching multiple files at once. But grep
is actually all about regular expressions (in fact, grep stands for global regular expression print). Using grep
, you can search for patterns within multiple files at once. When working on a project that has a lot of files (LinkedIn has a lot of files), grep
is a necessity. For example, I can search all my CSS files for places where I am using float: left;
or float: right;
using one grep
command.
Get Learning to Program now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.