Edit product


You are likely to be familiar with the "Find and Replace" dialog box from a text editor, word processor, IDE, etc to search for something and replace it with something else. sed is a command line tool that is similar, but much more versatile and feature-rich.

The book heavily leans on examples to present features of sed as well as regular expressions one by one. It is recommended that you manually type each example and experiment with them. Understanding both the nature of sample input string and the output produced is essential.

Exercises are also included to test your understanding.


You should have prior experience working with command line and bash shell, should know concepts like file redirection, command pipeline and so on.

Sample chapters

For a preview of the book, see sample chapters at https://github.com/learnbyexample/learn_gnused/blob/master/sample_chapters/gnu_sed_sample.pdf

GitHub repo

Visit https://github.com/learnbyexample/learn_gnused for code snippets and files used for examples/exercises in the book. The repo also has solutions for exercises.

1 rating

  • You'll get PDF and EPUB versions of the book.
  • Length98 pages
  • Last Updated2021-04-23



Enter your info to complete your purchase

Give as a gift


or pay with
pp paypal
You'll be charged US$10.