Coming to learn better the differences between #grep #awk and #sed.
Learning that my frustration with grep is that I misunderstood what its (at least base and intended) function is, and I've been trying to make it do things that are much more suited to things like sed and awk.
Time to learn some awk.
I"m a big fan and post about #awk frequently¹, blog about it occasionally², and hang out in r/awk too. The hashtag is also worth following if you aspire to use it more.
⸻
¹ https://mastodon.bsd.cafe/search?q=awk+from%3Agumnos&type=statuses
Sort lines in one text file by order of matching part in another file #commandline #grep #sed #awk #sort
As a long time #Forth, #Lisp, #Lua, #Awk and #C programmer, I really shouldn't be having this much fun coding in #Oberon (#Oberon-07 to be specific).
It reminds of old school Forth (particularly Eforth): Here is a minimally viable program language (fully described in a handful of pages); don't get hung up on abstraction and libraries:... work on the problem.