15 Useful ‘sed’ Command Tips and Tricks for Daily Linux System Administration Tasks

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Gabriel Cánepa

Gabriel Cánepa is a GNU/Linux sysadmin and web developer from Villa Mercedes, San Luis, Argentina. He works for a worldwide leading consumer product company and takes great pleasure in using FOSS tools to increase productivity in all areas of his daily work.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

8 Responses

  1. Kavitha says:

    This is very good and useful.

  2. Alexander says:

    No collection of sed tips is complete without a reference to the famous sed 1 liners


  3. Kingstan says:


    I got a question here. Is there a option to roll back to original content once after using sed command to replace any?


  4. imadjundi says:

    thanks, helpful article

  5. Mauricio López says:

    Even though I have used regex a few times, I keep finding it difficult to create them, thank you for this excellent tips.

    • Gabriel A. Cánepa says:

      I am glad that you found these tips useful. Please help us spread the word by sharing this article in your social network profiles!

  6. yashar esmaildokht says:

    thanks , powerful article .

Leave a Reply to Gabriel A. Cánepa Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.