• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

sed

sed : remove lines between two keywords [ including keywords ]

April 16, 2015 by Sharad Chhetri

The post explains a useful sed command trick to remove all lines between two keywords. The lines which has these keywords will also be removed. The below given command will show you the output on terminal and do not make any changes inside the file. So it is safe to use as preview output. sed […]

Filed Under: Linux Tagged With: sed

How to print particular line number by using sed command

August 8, 2014 by Sharad Chhetri 2 Comments

This is a single line sed command to illustrate the example of , ” How to print particular line number by using sed command ” . sed command are the ultimate stream line editor. Often we generally share sed related tips. Given below is content of file called test. Absolute path is /tmp/test This is […]

Filed Under: Linux, Linux Commands Tagged With: linux command, sed

Taking file backup while using sed command with -i flag

July 12, 2014 by Sharad Chhetri 2 Comments

Today this is another post on sed command in our blog. sed which is one of the famous and dynamic stream line editor use in Unix/Linux Operating System . Along with sed command we can use many available option. One of the option is -i . As per the manual page of sed command (Run […]

Filed Under: Linux Tagged With: sed

sed command to display text between two strings or keywords

July 11, 2014 by Sharad Chhetri Leave a Comment

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 […]

Filed Under: Linux, Linux Commands Tagged With: linux command, sed

remove html tags by using sed command

July 10, 2014 by Sharad Chhetri Leave a Comment

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 […]

Filed Under: Linux, Linux Commands Tagged With: linux command, sed

sed : find the pattern (keyword) and delete the line from file

July 6, 2014 by Sharad Chhetri Leave a Comment

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 […]

Filed Under: Linux, Linux Commands Tagged With: linux command, sed

  • Go to page 1
  • Go to page 2
  • Go to Next Page »

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

How to encode and decode the strings with base64

How to add/install Ubuntu fonts in CentOS/Red Hat Linux

How to zip directory in linux explained with examples

Convert video file into gif file through command line in linux

error could not configure a c compiler Linux

Virtual Machine inaccessible status on VirtualBox 4.3

Protect from w00tw00t.at.blackhats.romanian.anti-sec

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy