theclapp

Search theclapp.blog-city.com

 

Pipes in the Listener shell

posted Friday, 20-Apr-2007
In a previous post I said:
The fun really begins when I can say something like
CL-USER 218 > \ls | (each line (do-something-with line))
This is silly, of course. It'd be more like
CL-USER 218 > (mapcar #'do-something-with-line
(lines \ls))
In fact, this already works:
CL-USER 285 > (format t "~{~S~%~}" (lines \ls -l tmp))
"total 1240"
"-rw-r--r-- 1 clappl tivadm 633492 Apr 20 02:00 find.out.gz"
"drwxr-xr-x 2 clappl tivadm 256 Apr 16 17:23 visfilep1"
"0"
NIL
So I guess the fun has begun. *laugh*

tags:  

links: digg this    del.icio.us    technorati    reddit