match – POFTUT

How To Use Sed To Find and Replace Text In Files or Standard Input

Sed or Stream Editor provides a lot of useful and dynamic functions. One of the most popular use case for sed is search and replace text in standard input output and text files. In this tutorial we will look various use cases of find and replace in sed. Substitute Command Sed have different verbs or … Read more

Javascript Regular Expression Operation

Regular expression is the language to define specific pattern for text data. Javascript supports regular expression. Regular expression is generally used like below. We will look different type of usage examples of regular expression. var str = “This is an example about regex for poftut.com”; var re = new RegExp( “poftut”, “g” ); var result … 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

Python Regular Expression Operations – Regex

The regular expression is a popular topic in system administrators and developers. A regular expression is used to find structured text or string in single or multiple files. The best side of regular expression we can define whatever we want to match string in texts. Python supports and provides a lot of methods for regular … 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