Further Reading
man sed
andinfo sed
and online manual- Information about various implementations of
sed
- sed FAQ, great resource, but last modified 10 March 2003
- stackoverflow: BSD/macOS sed vs GNU sed vs the POSIX sed specification
- unix.stackexchange: Differences between sed on Mac OSX and other standard sed
- grymoire: sed tutorial — has details on differences between various
sed
versions as well
- Q&A on stackoverflow/stackexchange are good source of learning material, good for practice exercises as well
- Learn Regular Expressions (has information on flavors other than BRE/ERE too)
- regular-expressions — tutorials and tools
- rexegg — tutorials, tricks and more
- stackoverflow: What does this regex mean?
- online regex tester and debugger — not fully suitable for CLI tools, but most of ERE syntax works
- Related tools
- My ebooks on CLI text processing tools
Here are resource links for specific topics:
- ASCII reference and locale usage
- unix.stackexchange: When to use grep, sed, awk, perl, etc
- unix.stackexchange: replace multiline string
- stackoverflow: deleting empty lines with optional white spaces
- unix.stackexchange: print only line above the matching line
- stackoverflow: get lines between two patterns only if there is third pattern between them