3 ms·
How did I not know about this? I will never parse text in Bash again.
by teilo 4y ago
How did I not know about this? I will never parse text in Bash again.
- ratboy666 4y agoBut... 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.
- siph 4y ago'In a way, Nu is a way of saying “what if we didn’t need tools like awk so often?” Since you’re working with structured data, as we add more support for file types, it’s less often you need to reach for “awk”, “jq”, “grep”, and the array of other tools to open and work with common file types.' From this interview: https://www.notamonadtutorial.com/nushell-the-shell-where-traditional-unix-meets-modern-development-written-in-rust/ https://www.notamonadtutorial.com/nushell-the-shell-where-tr...