awk – POFTUT

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

Vim Copy, Cut and Paste Commands and Operations

Vim provides different shortcuts for copy, cut, and paste operations. These commands are one of the most used and problematic commands because of vim command or shortcut based work style. Copy Current Line We can copy the current line with the yy command which is named yank. But the cursor should be located in the line … Read more

Awk Regular Expression Commands and Examples

Awk is very popular and useful tool for text and string manipulation. Regex or regular expression is generic language used to define text and string structures. Awk can Syntax Regular expression for awk can be used with the following syntax. awk ‘/REGULAR_EXPRESSION/’ REGULAR_EXPRESSION is the regular expression we want to run . The regular expression is … Read more

Awk Logical Operators – OR, AND, NOT

Awk Logical Operators - OR , AND , NOT

Boolean expressions are used to determine the occurrence of the given condition. Awk provides basic logical operators or and, or and not logic operators. In this tutorial, we will look basic usages of these logical operators. Boolean logic operators mainly used with conditional statements where we can get more information from the following tutorial. Awk If, If … Read more

Awk Text Split and Delimit Examples

Awk provides a lot of functions to manipulate, change, split etc. We will look how to split text with awk with different examples. For a general awk tutorial please look following tutorial. Awk Print Tutorial With Examples Split Syntax Awk provides the split function in order to create array according to given delimiter. split function syntax is … Read more

Awk If, If Else, Else Statement or Conditional Statements

Awk If, If Else, Else Statement or Conditional Statements

Awk is a very popular text processing tool. Awk provides different functionalities and structures like programming languages. if – if else is a very useful conditional statement used to create decision trees. if – if else used to check the given situation or operations and run accordingly. For example, we can check the age of the person … Read more

Ultimate Sed Tutorial With Examples

Ultimate Sed Tutorial With Examples

Sed is a stream editor. Sed is used to transform text according to different needs. Sed has a scripting language set too. Sed scripts can be run against files as we see our examples below.  Now we should start an example because this tutorial is one of the longest tutorials on this site. sed Command … Read more

Awk Print Tutorial With Examples

Awk is a stream type programming language. Awk can edit given text ant provided new text according to instructions. We will look popular usages of Awk in this  tutorial. There are alternative awk implementations like below Nawk Gawk Awk Syntax Awk is line oriented so by default provided text is processed line by line. Awk … Read more

Linux Print History Command Without Line Numbers

Linux history command is used to get previously used commands by the current user. The default size for the history command is 1000 which means that last 1000 command will be stored in history. While listing history of bash line numbers are provided too. This is not expected in some situations. To get history without line … Read more