sed – POFTUT

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

Vim Undo and Redo Operations

While editing text files with vim we can make some little mistakes or want to revert to the previous states. In Microsoft Word there is features rich undo and revert functions. The similar undo and revert functionalities provided by vim too. List Changes In order to revert back we can list changes and related information. … Read more

Vim Go To Line with Different Ways

Vim provides a lot of useful features and shortcuts during usage. In this tutorial we will look different ways to go specified line numbers or position in a file. Show Line Numbers In this tutorial we will learn navigating to the specified line in vim. But how can we specify line we want to go. … 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

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

Useful Linux Commands

Useful Linux Commands

Linux is a command-based operating system. Most of the things are done in the command-line environment bash. In this tutorial, we will look at popular and useful commands used by Linux system administrators and users. You can access detailed tutorials simply clicking links below. tr tr command is used to translate or delete characters in the … 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

Linux wc Command Word and Line Count Tutorial With Examples

Linux provides a lot of tools for text-related operations. wc is one of them. This tool is a little tool less than 10 options. In this tutorial, we will look at how to count bytes? How to count words? How to count Lines? and How to use wc with other Linux commands like find and … Read more

How To Replace A Text Exists In Many Files?

How To Replace A Text Exists In Many Files?

Linux provides a lot of tools to ease system administrators work. One of them is to replace command which simple search text files to replace string and create a new text file. Replace command comes with MySQL Server packages. IF MySQL is not installed we can not use replace command. Replace Command We can use … 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