grep – 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

Regex Space, Whitespace, Tab Usage Examples

When dealing with the text files such as log files, user list, server list etc we can use regex for formally structured files. Space, white-space, and tab are popular separating elements used in regex or CSV files. In this tutorial, we will examine how to use regex with space, whitespace, tab or no space, no whitespace … 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 List Installed Packages In Ubuntu, Debian, Kali, Mint

Ubuntu, Debian, Kali and Mint distributions uses apt-get and dpkg commands for package management. We generally use this commands to install or remove packages from Linux systems. But in some cases we may need to list and count installed packages. In this tutorial we will look how to list and count all ready installed packages in Ubuntu, … Read more

How To Get Linux Network IP Address In Different Ways ?

We can determine Linux system IP address in different ways. IP address is used to communicate over network and can be get and set in different ways. In this tutorial we will use Ubuntu distribution but given examples and commands will work for all of the different Linux distribution like Fedora, CentOS, Debian, Kali, Mint, … Read more

Troubleshoot and Check Cron Job Logs

Troubleshoot and Check Cron Job Logs

cron is a very useful tool and mechanism to schedule jobs in a Linux operating system. cron can run scripts, commands, binaries if set properly. But in some cases, there may be some misconfiguration or unexpected behavior. So we may not be sure whether cron runs as we want. We can check cron log in … 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

Linux Bash Pipe Command Usage with Examples For Redirection

Linux Bash Pipe Command Usage with Examples For Redirection

Linux Bash provides a lot of useful features and commands. Pipe or | is one of them. Bash provides a command-line interface facility which mainly used to concatenate command output to another command. Bash Pipe Concept In Linux everything is file. This may seem odd but it is. Every command executed will have three type of … Read more