lua-users home
lua-l archive

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


On Thu, Jul 8, 2010 at 06:50, David Manura <dm.lua@math2.org> wrote:
> However, what about simply this?

>  exec 'ls /dev | lua -e $Q(for line in io.stdin:lines(true) do
> io.stdout:write(line,line) end) | grep ^sg.*'

Regarding the syntax and stuff...

I think that it would help if we would try to rewrite some
shell-script in our hypothetic API — to get a feel of it.

Anyone have a handy shell script of moderate length (not too short,
not too long) that does some strange, but fascinating things?

Alexander.