But... Bash (sh) is not meant to parse text!
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.
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...