lua-users home
lua-l archive

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


Gabor Grothendieck:
> COMMAND LINE SWITCHES
> Finally, regarding perl's numerous awk-mode switches, I personally have
> always found them bewildering rather than simplifying.  I am not sure that
> the implementation should be an awk "mode" or just lua libraries that make
> awk-style processing easy.

So something like:
    lua -l awk -e "awk '!x[$0]++'"
should work fine?!

It would load the (hyperthetical) Awk library then execute an Awk command.

*cheers*
Peter Hill.