Wow, sed is so powerful itโs basically impossible to use!
Much like iptables.
You know a Linux/Unix utility is fucked when there are experts in just that utility. People more obsessed with their tools than what they get done will always be a puzzle to me.
I find it easier in 100% of the cases to write a python script to transform text than use sed or any other command line utility.