Seen in the wild: replace all the newlines with a literal $ in sed:
sed -e 's/$/$/'
It's always bugged me that regex replace syntax looks similar to regex, occurs close to the search syntax, but actually has a different meaning. It's harder to read.
miniblog.
Related Posts
I've realised that the Haskell 'slogan' "avoid success at all costs" is ambiguous.
It can be parsed as "avoid success, at all costs" or "avoid success-at-all-costs". I'm not always sure which meaning is intended.
Finding meaning in open source projects, the principle of charity, and avoiding a mindset of scarcity.
Really great reflections on the motivations of open sourcing Rails.
https://world.hey.com/dhh/i-won-t-let-you-pay-me-for-my-open-source-d7cf4568
TIL that Prolog has a notion of a functor! https://www.cse.unsw.edu.au/~billw/dictionaries/prolog/functor.html
In true PL style it has a different meaning from the Haskell, OCaml and C++ terminology.