Linux egrep Command Tutorial

Linux egrep Command Tutorial

The egrep command is an extended version of the grep command. The egrep name comes from the Extended Global Regular Expression Print . The egrep command simply searches single or multiple specified files for a specific pattern which can be also a Regular Expression. The egrep command is the grep -E implementation where the -E … Read more

How To Exclude Directories with Grep?

How To Exclude Directories with Grep?

The Linux grep command is used to search and filter files and folders for the specified search term or regex pattern. One of the powerful features of the grep command is the ability to search multiple directories recursively. Even though it is a good feature in some cases we may need to exclude some directories … Read more

How To Recursively Grep All Directories and Subdirectories?

The grep command is a great tool to search all directories and subdirectories for their contents. The grep command recursive option is used to make a search in all specified paths and subdirectories for all files and child files for the specified term. Search Current Working Directory Recursively with grep Command The first example of … Read more

grep Command Tutorial In Linux with Examples

grep Command Tutorial In Linux with Examples

The grep command is the very popular command used to filter string, text, and data in files and command outputs. From an academic point of view, the grep command searches for PATTERNS in each FILE. PATTERNS can be simple text, number, string, or regex (regular expressions). grep Command Syntax The grep command has the following … Read more

Linux zgrep Command Tutorial

Linux zgrep Command Tutorial

The grep is a popular command used to search and match specified string in the given content or files. The zgrep is very similar to the grep where the compressed files can be easily grepped without any extra command to uncompress them. In this tutorial, we examine how to use zgrep to search in compressed … Read more

Exact Match with Grep Command

Exact Match with Grep Command

The grep command is the very popular command-line tool to match or grep given pattern in the specified text or content. One of the most popular cases for the grep command is the exact match. This can be also called an exact string match with the grep command. Exact Match with -w Option The -w … Read more