1. Cover
  2. Buy PDF/EPUB versions
  3. 1. Preface
  4. 2. Introduction
  5. 3. In-place file editing
  6. 4. Selective editing
  7. 5. BRE/ERE Regular Expressions
  8. 6. Flags
  9. 7. Shell substitutions
  10. 8. z, s and f command line options
  11. 9. append, change, insert
  12. 10. Adding content from file
  13. 11. Control structures
  14. 12. Processing lines bounded by distinct markers
  15. 13. Gotchas and Tricks
  16. 14. Further Reading
  17. 15. Exercise Solutions


  18.    Source code
  19.    My Blog
  20.    My Books
  21.    learnbyexample weekly
  22.    Twitter

CLI text processing with GNU sed

    Buy PDF/EPUB versions

    Purchase links

    You can buy the pdf/epub versions of the book using these links:

    • https://leanpub.com/gnu_sed
    • https://learnbyexample.gumroad.com/l/gnu_sed

    Bundles

    You can also get the book as part of these bundles:

    • All books bundle
      • https://leanpub.com/b/learnbyexample-all-books
      • https://learnbyexample.gumroad.com/l/all-books
    • Linux CLI Text Processing
      • https://leanpub.com/b/linux-cli-text-processing
      • https://learnbyexample.gumroad.com/l/linux-cli-text-processing
    • Magical one-liners
      • https://leanpub.com/b/oneliners
      • https://learnbyexample.gumroad.com/l/oneliners
    • Awesome Regex
      • https://leanpub.com/b/regex
      • https://learnbyexample.gumroad.com/l/regex

    Testimonials

    Thank you for choosing to write and share your knowledge. I read your books on CLI and sed - I think they are very comprehensive and very well explained. Keep up the great work

    — feedback on twitter

    Book list

    Here's a list of programming books I've written:

    • Understanding Python re(gex)?
    • Understanding JavaScript RegExp
    • Understanding Ruby Regexp
    • CLI text processing with GNU grep and ripgrep
    • CLI text processing with GNU sed
    • CLI text processing with GNU awk
    • Ruby One-Liners Guide
    • Perl One-Liners Guide
    • 100 Page Python Intro
    • Practice Python Projects
    • CLI text processing with GNU Coreutils
    • Vim Reference Guide
    • Linux Command Line Computing