Skip to content
GoLinuxHub
  • Home
  • Linux Basics
  • Security
  • VMware
  • DevOps
  • Programming
  • Contact Me

SED Usage and Examples (Cheatsheet)


10 Basic examples of SED to perform per line action (print/delete)
sed: remove all leading and ending blank whitespace from a file
sed :Replace whole line when match found
sed: Replace string based on line number (certain line)
sed: Insert multiple lines before or after pattern match
sed: match string and append new line (before or after)
sed: Insert character in the beginning or end of line with matched pattern
sed: insert word after match in middle of the line
sed: case insensitive actions (search replace delete..)
sed: delete all blank lines from a text file
sed: perform search and replace only on specific lines (not globally)
sed: add or append character at beginning or end of line (row) of a file
sed: Ignore whitespace while matching a pattern

Recent Posts

  • How To Keep Your Business Data Secure In The Cloud 
  • 9 Tips For Safe And Secure Browsing
  • Some of the Most Helpful Tools Every Business Needs
  • How Long Does it Take to Create an Efficient Application?
  • Smart Home Devices Every Individual Must Have
  • What is a VPN and Why You May Need One
  • Mobile Casinos: Then and Now
  • The best screen recorders in 2021. What will be popular in 2022?
  • Benefits of Choosing an Unlimited data Plan
  • Top Most Used and Popular Mobile Apps in 2021
Copyright © 2023 | Hosted On Rocket.net