In this post we will know about sed command to display text between two strings or keywords or words . Sed is a stream editor. A stream editor is used to perform basic text transformations on an input stream (a file or input from a pipeline) (Definition Reference from man page of sed). Knowledge of […]
Linux Commands
remove html tags by using sed command
In this post we are sharing tips to remove html tags by using sed command. Today, while working on migration of site from wordpress to static site, I used lots of sed command. I am sharing some sed command which are always successful for me. In html tags generally the tags are coded in this […]
sed : find the pattern (keyword) and delete the line from file
sed is stream line editor utility in unix operating systems.sed is a line-oriented text processing utility: it reads text, line by line, from an input stream or file, into an internal buffer called the pattern space. Each line read starts a cycle. To the pattern space, sed applies one or more operations which have been […]
vi : Edit file without opening it
In this post I am sharing the trick to edit file without opening it. To achieve this task we will use vi editor. vi is very well known,popular,ultimate and awesome editor and by default available in all Unix/Linux operating system. Syntax: vi -c ‘COMMAND|wq’ /path/of/file Example: We will replace a keyword with new keyword in […]
How to set root password on Ubuntu / Debian / Linux Mint
FAQ : How to set root password on Ubuntu / Debian / Linux Mint Operating system ? How may I also check , the root password is working ? Answer: Ubuntu is Debian based operating system. Whereas Linux Mint is based on Ubuntu and Debian both. Set / reset root password on Ubuntu / Debian […]
grep command to remove commented lines
In this post we will learn how to use grep command to remove commented lines. We can also use egrep command which is extended form of grep command. As a Linux System Engineer, I mostly use some of the command. Most of the time when I am busy in playing on system, I generally meet […]
Recent Comments