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

Search Text In Files In Linux

Search Text In Files In Linux

Linux is a very flexible operating system that provides a lot of different actions. Searching text in multiple files in different ways is one of them. There are different commands that can be used to search multiple files in multiple directories. Search Text In Files The grep command is the most popular and useful command … Read more

List Directories In Linux

List Directories In Linux

Directories or folders are used to store different items like files, directories, folder data, etc. While working with these items we may need to list them especially directories. There are different commands those can be used to list directories. In this tutorial, we will learn how to list directories in Linux. List Directories with ls … Read more

Grep Search Case Insensitive String – Ignore Case

Grep Search Case Insensitive String - Ignore Case

The grep tool is used to search and match the specified Patterns in a file or string. While searching and matching the upper case and lower case letters differ and do not match the upper case pattern with the lower case string. This is called case sensitivity. But the case sensitivity can be disabled and … Read more

Print Line Number For Grep Command

Print Line Number For Grep Command

grep is a popular tool in order to search and find a given term in files. grep can search multiple files at the same time and match using regular expressions etc. While searching files the matched lines can be printed to the screen with the grep command. In this tutorial, we will examine different ways … Read more