| To: | sommerfeld@apollo.hp.com |
|---|---|
| Subject: | Re: Doc bug: "sort" function referenced in `awk.tex' chapter doesn't exist |
| From: | Olin Shivers <shivers@clark.lcs.mit.edu> |
| Date: | Wed, 4 Jan 95 19:22:18 -0500 |
| Cc: | scsh-bugs@martigny.ai.mit.edu |
| Reply-to: | shivers@mintaka.lcs.mit.edu |
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.
-Olin
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Doc bug: "sort" function referenced in `awk.tex' chapter doesn't exist, Bill Sommerfeld |
|---|---|
| Next by Date: | irix5.2 problem with sys_errlist, Dave Love |
| Previous by Thread: | Doc bug: "sort" function referenced in `awk.tex' chapter doesn't exist, Bill Sommerfeld |
| Next by Thread: | irix5.2 problem with sys_errlist, Dave Love |
| Indexes: | [Date] [Thread] [Top] [All Lists] |