Re: quickie filters

Lou Kates (louk@RESEARCH.TELERIDE.ON.CA)
Tue, 7 Jul 1992 19:18:59 -0400

>
> >In perl there are flags to:
> > a. read the program from the command line
> > b. iterate over all the arguments using them as successive
> > input files
> > c. automatically split each input line
> >
> >This makes it easy to write quickie filters.
>
...
> On the other hand, it isn't hard to write a Python script that
> emulates these options. Here's a simple one that emulates -ae:
[example omitted]

This example seems sufficiently useful, in general, that it (or
possibly a sligthly enhanced version of it) should be added to
the standard distributed Python library. It is useful not only
for itself but also as a learning example of how you do this sort
of thing in Python.

Lou Kates, louk@research.teleride.on.ca