egrep – POFTUT

How To Download, Install and Use GNU Grep On Windows?

How To Download, Install and Use GNU Grep On Windows?

grep is a very powerful and useful tool used in Linux and Unix operating systems. It is mainly used to match and print specified text in given text files in different formats. grep also have subversions like egrep which will provide extended functionality like regular expressions. In this tutorial, we will learn how to download, … Read more

How To Create Case Insensitive Regex?

Regex is used given text according to different and flexible patterns. It provides a lot of different patterns which can match given text or line. The default behavior of the regex is case sensitive which means upper and lowercase letters are interpreted as different. We can match regex case insensitive or ignore case sensitivity. Case Insensitive … Read more

Using Grep Case Insensitive

grep is very useful too to  match and find phrases, words and characters in test. One of the most used situation is using grep case sensitive or case insensitive. In this tutorial we will examine different examples. We have all ready examined grep in the following tutorial. Linux grep Command Tutorial with Examples Case Sensitive We will start … Read more

Python Glob() Function To Match Path, Directory, File Names with Examples

Python Glob() Function To Match Path, Directory, File Names with Examples

glob is a general term used to define techniques to match specified patterns according to rules related to Unix shell. Linux and Unix systems and shells also support glob and also provide function glob() in system libraries. In this tutorial, we will look glob() function usage in Python programming language. Import Glob Module In order to use glob() and … Read more

How To Grep Multiple Strings, Patterns or Regex in A Text File In Linux?

grep  provides a lot of features to match strings, patterns or regex in a given text. One of the most used feature is to match two or more, multiple string, patterns or regex. In this tutorial we will look different examples about these features. If you need more general tutorial about regex please look following article. … Read more

How To Exclude with Grep In Linux?

grep is very useful tool used by a lot of tech guys. grep provides different functions to match given text. We have all ready mentioned these useful options of grep. In this tutorial we will look different ways to exclude in grep. Linux egrep Command Tutorial with Examples Exclude with -v  Option The basic way … Read more

How To Use Regular Expression – Regex In Bash Linux?

Linux bash provides a lot of commands and features for Regular Expressions or regex. grep , expr , sed and awk  are some of them. Bash also have =~ operator which is named as RE-match  operator. In this tutorial we will look =~  operator and use cases. More information about regex command cna be found in the following tutorials. … Read more

How To Use Grep Command Recursively Through Sub-Directories In Linux?

grep is very useful command to search files and directories. What makes grep powerful is that it can search file contents. We can search file content according to extension. Recursive behavior makes it more powerful by looking sub directories and files. Introduction to Linux Grep Command With Examples Recursive -r Option We will start with … Read more

Linux Grep OR, AND, NOT Operator and Logic Examples

logrep is very useful tool for text search and pattern matching. We have all ready provided tutorial and examples about grep and egrep . In this tutorial we will look grep command or , and , not logic operations in detail. Example Text We will use following text during tutorial for grep operations. This is … Read more

Linux egrep Command Tutorial with Examples

Linux provides grep for text filtering. But in some situations we may need more extended tool to match given pattern in given text files. This tool is called Extended Global Regular Expression Print or simply egrep . egrep provides extended features over regular grep tool. Syntax Syntax of  egrep command is like below. egrep FLAG … Read more