text – POFTUT

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

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

Bash Printf Function Tutorial with Examples

Bash provides programming features to make Linux system administrator’s life easier. printf is one of the most used function used by Linux bash programmers. In this tutorial we will look Linux bash printf features and use cases while developing bash programs. Bash printf function is very similar to the C printf function. Just Print We can use printf function … Read more

Linux Vi and Vim Command-Line Text Editor Tutorial

Linux Vi and Vim Command-Line Text Editor Tutorial

Linux provides a lot of useful tools from the command line. Vi or Vim is one of the very popular text editor used in Linux, Unix, and BSD operating systems. In this tutorial, we will look at different usage examples of the Vim. From up to now we will call Vim which is an improved … Read more

How To Grep Text Files With Powershell Grep or Select-String Cmdlet In Windows?

Linux provides tool named grep for filter text data or output according to given string or regular expression. This tool is popular amongst Linux system administrators. On the other side Windows operating systems generally lacks this tool and its functionality up to Powershell. Powershell provides Select-String commandlet to provide similar features and options the Linux grep … Read more

Powershell Trim Operation Like Filename, String, End, Start, Spaces

Powershell provides a lot of different string manipulation functions and features. Trim function is used to remove specified characters from string with different ways. In this tutorial we will look some of the trim examples. Trim White Spaces From Start and End We will start by trimming given string or texts beginning and end white spaces. … Read more

Winmerge Tutorial With Examples To Visual Patch, Diff, Merge

Linux operating system have different tools to find diff and create patches. Windows operating system do not provide any builtin tool for these operations. But there is a 3 party application which can be used easily and freely called Winmerge. Download and Installation The winmerge tool can be downloaded from following link. https://downloads.sourceforge.net/project/winmerge/stable/2.14.0/WinMerge-2.14.0-Setup.exe After download is … Read more

Search Text Files Content With Findstr Command In Windows

Windows provides findstr tool to search file contents. These file contents expected to be text and string but binary binary files are accepted too. But searching binary files and content will not give good results. In this tutorial we will look different usage types of the findstr command. Keep in mind that this is different than … Read more

Linux tr Command Tutorial With Examples

tr command is mainly used to translate or delete characters in bash. tr is not a complex but useful command. We will look at various usage scenarios of tr in this tutorial. Syntax We will use the following syntax for tr command. tr [OPTION]… SET1 [SET2] Help Help can get with –help parameter like below. $ … Read more