There are a ton of little errors in this post (at the time of my leaving this comment, of course): the variable delimiter example is missing the close _, the first word example is missing the open ', and the except line 5 example is missing a space; meanwhile, these snippets will cause bad habits, such as thinking about "words" as "things involving letters", using -r instead of -E, and a massive knowledge gap with re…
100% agree. This document shows practices of sed, but the author doesn't seem aware of best practices . A sed script starting with '#!/bin/bash' is a bad practice.
What other good practice suggestions do you have? (if you're comfortable answering and have the time)