reddit / emacs

Learn AWK with Emacs - jherrlin

ksinkar · 2022-02-23 06:28
deaddyfreddy · 2022-02-23 10:54
> But if I write larger applications my weapon of choice is a functional lisp with immutable data structures. I use Clojure for applications of any size, learned awk 10+ years ago, but can't remember when was the last time I used it, just see no reason to. The typing overhead is minimal, while the cognitive one is much bigger in awk. here's the log parsing example (->> "text-files/access.log" slurp (re-seq #"(?:^|\n)([^ ]+)") (map second) frequencies (sort-by val) reverse)
crmsnbleyd · 2022-02-23 12:32
i love using babashka for almost all tasks. unless I'm doing a one-off command i never use gnu/bash built-ins anymore.