Definitive Guide to sed: Tutorial and Reference,

Definitive Guide to sed: Tutorial and Reference,

5.0 1
by Daniel Goldman
     
 
What is sed? sed is a "stream editor". sed rapidly and reliably transforms text files, and edits "streams" (program outputs) on the fly. sed is a uniquely useful text processing tool, installed by default on Unix computers. sed can also be used on a Windows PC.

Why should I learn sed? If you write scripts, maintain source code, maintain web sites, or

Overview

What is sed? sed is a "stream editor". sed rapidly and reliably transforms text files, and edits "streams" (program outputs) on the fly. sed is a uniquely useful text processing tool, installed by default on Unix computers. sed can also be used on a Windows PC.

Why should I learn sed? If you write scripts, maintain source code, maintain web sites, or process text data, sed can help make your work more productive and enjoyable. Plus, sed is fun and interesting to use.

Why should I buy this book? "Definitive Guide to sed" is the best way to learn sed. "Definitive Guide" greatly lessens the confusion many encounter on trying to learn sed. The book serves as a full tutorial and reference, useful for both beginning and experienced sed users.

Any prerequisites? If you plan to use sed on Unix, it is recommended to be familiar with basic Unix commands and to have written some simple shell scripts. If you plan to use sed on Windows, it is recommended to be familiar with batch or PowerShell scripting. sed is not a "beginner's tool".

Which sed is covered? GNU sed 4.2.1 is covered. If you use a different sed, this book is still useful for learning sed, since most of the commands are the same.

What topics are covered?

- All sed commands and options
- All regular expressions as used within GNU sed
- Addresses to specify when sed commands are run
- Related Unix text utilities, such as grep, head, and tr
- Many example sed scripts with full explanations
- Reference sections for easy lookup

What devices can the e-book version be read on? The e-book version is specially formatted for correct display on Kindle, Kobo, Nook, and Sony devices; and for viewing with Adobe Digital Editions, Calibre, and iBooks software.

===========

Top-Level Table of Contents

Foreword
Preface

1: Introduction to sed
2: sed s (substitute) Command
3: Flags for s (substitute) Command

4: Single Character MetaChars
5: Anchor MetaChars
6: Simple Repetition MetaChars
7: General Repetition MetaChars
8: Other RegEx MetaChars
9: SubEx MetaChars

10: Command Addresses

11: Delete PatSpace Content - dD
12: Append, Insert, Change - aic
13: Print PatSpace - pP l
14: Read / Write File - rR wW
15: Read Line into PatSpace - nN
16: Access HoldSpace - hH gG x
17: Branch / Quit - : btT / qQ
18: Other Actions - { } # eyvz =

19: General Advice about sed

20: Examples - Substitutions
21: Examples - Line Spacing
22: Examples - Add Some Lines
23: Examples - Print Some Lines
24: Examples - Delete Some Lines
25: Examples - Other Short Tasks
26: Examples - Complex Tasks

27: Related Unix Commands - grep
28: Other Related Commands - 1/2
29: Other Related Commands - 2/2

30: Definitions of Special Terms
31: sed Command Line Reference
32: sed Command Reference
33: s Command Flag Reference
34: Address & Regex Reference
35: Related Books and Web Sites

(Edited on pubit 2013-05-31)

Editorial Reviews

Author of 'The Advanced Bash Scripting Guide' - Mendel Cooper
"Definitive Guide to sed" seems like a great way to learn sed. It's a reference / tutorial that's straightforward and to the point. The book has clear descriptions of every sed feature. It's systematic and organized, and written in a flowing style that takes most of the pain out of learning a somewhat complex topic. "Definitive Guide to sed" is highly recommended.
GNU sed Maintainer 2004-2012 - Paolo Bonzini
I can recommend this book as a good way to learn and review sed. It completely covers GNU sed, with many examples. I hope that this book is well received. The effort put in by the author, and the high quality of the result, surely deserve that.

Product Details

ISBN-13:
2940016227399
Publisher:
EHDP Press
Publication date:
02/17/2013
Sold by:
Barnes & Noble
Format:
NOOK Book
File size:
880 KB

Meet the Author

Daniel Goldman has been "in the trenches" many years developing software, using sed along with other Unix programs, importing data, writing user guides, and helping users learn. Dan has the desire to help others master sed and feel comfortable using sed. (Edited on pubit 2013-05-31)

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >

Definitive Guide to sed: Tutorial and Reference, 5 out of 5 based on 0 ratings. 1 reviews.
Anonymous More than 1 year ago
You couldn't find a more dependable and conscientious technical writer...highly recommended.