[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Read?



I am a current bash user (and hence addicted to feeping creaturism. :-)
Even so, I would like to try life with es for a while to see what it's
like, but one thing in particular stops me: It turns out that the one
construct I use the most in the shell apart from running simple
commands and pipelines is something like this -

  find ... -print | while read x; do something to $x; done

but I find no read command nor anything that can be pressed into that
service in es.  So how do es users do the sort of thing the above
pipeline does?  Of course there is

  for (x=``\n{find ... -print}) {something to $x}

but the find command might take a long time to complete and I want
useful work to start as soon as it finds a file to work with.

- Harald Hanche-Olsen <hanche@ams.sunysb.edu>
  Dept of Applied Math and Stat
  SUNY at Stony Brook
  Stony Brook, NY 11794-3600