awk.tex contains the following example (near the end)
(for-each (lambda (entry) (display (cdr entry)) (newline)) ; Out
(sort (lambda (x y) (string<? (car x) (car y))) ; Sort
(let ((read (field-reader (infix-splitter ":" 7)))) ; In
(awk (read) (line fields) ((ans '()))
(#t (cons (cons ($ fields 0) line) ans))))))
However, the "sort" function doesn't seem to exist in scsh 0.3.
Yep, it's not in scsh. What scsh desperately needs is a way to write scripts
that use the S48 module system, so that we can factor things into something
that isn't a huge kitchen-sink. I'm thinking about it.
BTW, I've written one sample program with the awk macro and it seems
to do a good chunk of what I want ... looks good!
Glad you like it.