How did I not know about this? I will never parse text in Bash again.
Bash (sh) is glue. awk can parse text. As can SNOBOL4 if you REALLY want to go crazy. Or sed. Math is done by expr, dc and bc.
From this interview: https://www.notamonadtutorial.com/nushell-the-shell-where-tr...