News for hackers. Stuff that matters.
Re:Scsh – Scheme as a Unix shell by simcop2387 on Tuesday September 02, 2014 @04:16PM (#8259885)
I'd love to see something a bit less trivial, like iterating over the output of another command to run some other commands

    for i in `bin/hosts`; do ssh $i uptime; done
Re:Scsh – Scheme as a Unix shell by th0ma5 on Tuesday September 02, 2014 @04:20PM (#8259908)
The documentation seems to suggest it supports through a library a "rec" as in recursive command as documented here http://srfi.schemers.org/srfi-31/srfi-31.html ... not sure how to extrapolate that to your specific example however :D
Re:Scsh – Scheme as a Unix shell by rml on Tuesday September 02, 2014 @07:23PM (#8260746)
There might be a better way, but this should work:

    (for-each (lambda (x)
            (run (ssh ,x uptime)))
          (run/strings (cat /etc/hosts)))