CLI text processing with GNU grep and ripgrep


CLI text processing with GNU grep and ripgrep
Author: Sundeep Agarwal
7,651
READERS

118
PAGES

60 DAYS
GUARANTEE

ENGLISH

PDF

EPUB

Book Description

The grep command is a versatile and feature-rich version of search functionality usable from the command line. The most notable feature is regular expressions, a mini-programming language to precisely define a matching criteria.

In this book, you’ll learn about GNU grep and ripgrep with plenty of examples and exercises.

You are likely to be familiar with using a search dialog (usually invoked with the Ctrl+F shortcut) to locate the occurrences of a particular string. The grep command is a versatile and feature-rich version of that search functionality usable from the command line. An important feature that GUI applications may lack is regular expressions, a mini-programming language to precisely define a matching criteria.

This book heavily leans on examples to present features one by one. In addition to command options, regular expressions will also be discussed in detail. Two different implementations are discussed in this book — GNU grep and ripgrep.

Exercises are also included to test your understanding.

Prerequisites
You should be familiar with command line usage in a Unix-like environment. You should also be comfortable with concepts like file redirection and command pipelines.

You are also expected to get comfortable with reading manuals, searching online, visiting external links provided for further reading, tinkering with illustrated examples, asking for help when you are stuck and so on. In other words, be proactive and curious instead of just consuming the content passively.

Table of Contents
1. Preface

2. Introduction

3. Frequently used options

4. BRE/ERE Regular Expressions

5. Context matching

6. Recursive search

7. Miscellaneous options

8. Perl Compatible Regular Expressions

9. Gotchas and Tricks

10. ripgrep

11. Further Reading

下载地址 Download解决验证以访问链接!
打赏
未经允许不得转载:finelybook » CLI text processing with GNU grep and ripgrep

评论 抢沙发

觉得文章有用就打赏一下

您的打赏,我们将继续给力更多优质内容

支付宝扫一扫

微信扫一扫