[colug-432] Nice Plain Text Columns and Avoiding NIH: expand: not

Rob Stampfli res at colnet.cmhnet.org
Mon Aug 29 14:19:42 EDT 2011


On Mon, Aug 29, 2011 at 12:39:20PM -0400, Rob Funk wrote:
> While all work, I like the first version because it explicitly separates the 
> source from the filter. The second version muddles the filter parameters 
> together with the source parameter. The third version has more separation, but 
> still gets confusing, or at least less than straightforward, if you start 
> adding more filters.
> 
> A lot of times I'll write scripts that look something like:
> cat foo |\
>   filter --somehow |\
>   another-filter --some-other-way |\
>   more-filtering --with-more-options

Why not just:

<foo \
  filter --somehow |\
  another-filter --some-other-way |\
  more-filtering --with-more-options

The other Rob


More information about the colug-432 mailing list