grep – POFTUT

Tagged: grep

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

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, install and use grep and egrep for Windows operating systems. Download GNU Grep grep is...

0

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 and no tab. Example Text We will use the following text as an example.

...

0

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 As Grep Option grep is very popular tool which is used to filter given text...

0

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 with the default behavior of the grep command which is case sensitive. In this example we...

1

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

glob is a general term used to define techniques to match specified pattern according to rules related Unix shell. Linux and Unix systems and shells also supports 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 related functions we need to import the glob module. Keep in mind that glob module contains glob() and other...

0

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, Debian, Kali and Mint. List Installed Packages and Details with dpkg We will start with...

0

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, RHEL etc. Hostname Command IP Address hostname command is mainly used to show or set...

0

Troubleshoot and Check Cron Job Logs

cron is very useful tool and mechanism to schedule jobs in Linux operating system. cron can run scripts, commands, binaries if set properly. But in some cases there may be some mis-configuration or unexpected behavior. So we may not be sure whether cron runs like we want. We can check cron log in order to get more detail about job. By the way more details about cron can be learned...

0

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. How To Use Regular Expression – Regex In Bash Linux? Grep -E or Egrep Before...

0

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 command line interface facility which mainly used to concatenate command output to another command. Concept In Linux everything is file. This may seem odd but it is. Every command executed will have three type of streams which can be used to provide or output data into and from a command. STDIN (0)...

Enjoy this blog? Please spread the word :)