Finding files with grep

Grokking Grep

Article from Issue 139/2012

Once you understand the intricacies of grep, you can find just about anything.

Finding files has always been a priority in computing. Now, with hard drives of three or more terabytes becoming the norm, finding files is more important than ever. Yet, of all the commands developed to perform this task, few can match for sheer power one of the oldest solutions of all: grep and its family of related commands. For almost 40 years now, grep has been a standard command on Unixlike systems for searching text files for lines that match a certain pattern, and its usefulness shows no signs of disappearing.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Command Line – tre-agrep

    Tre-agrep has all of grep's functionality but can also do ambiguous or fuzzy searches without deep knowledge of regular expressions.

  • agrep

    The agrep tool expands on grep by adding fuzzy search capabilities to text string-matching operations.

  • ICgrep

    One of the most common tasks when working on computers involves browsing texts for search patterns. Here, ICgrep offers a modern, parallel, and Unicode-enabled alternative to the classic grep.

  • Command Line: Vim Search Commands

    We show you how to build on the basic functionality of Vim by introducing some useful search commands.

  • Command Line: Data Flow

    Working in the shell has many benefits. Pipelines, redirectors, and chains of commands give users almost infinite options.

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95