lua-users home
lua-l archive

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


On Tue, Feb 1, 2011 at 3:54 PM, Steve Litt <slitt@troubleshooters.com> wrote:
>> My personal favorite... filters:
>> http://lua-users.org/wiki/FiltersSourcesAndSinks
>
> Devils advocate:
>
> Why use filters in Lua coroutines when you could do:
>
> grep -v .jpg$  access_log | grep -v .gif$ | grep -v .class$ | \
> calculate.lua | add_hdrs_and_footers.lua | \
> sort | report.lua > traffic_report.txt
>

That solution is a non-starter if you are writing code that must be
portable across various platforms, some of which do not have native
support for grep. E.g., the various flavors of Windows.

Best regards,

Paul

--
NoteCase Pro
The Massively Multi-Platform Outliner
http://notecasepro.com