On 2008-04-23 19:28:22 -0400, Thomas Dickey wrote: > I wouldn't expect any specific behavior from cat'ing a file to the screen, > unless it had been formatted. That's what a pager is for - to define the > behavior for unformatted text. > > (if grep needs an option to produce formatted text, it should take into > account the destination).
Formatted text would not be OK, as the number of columns is not necessarily known in advance. Perhaps grep should have an option to generate XML or something similar, to allow post-processing. BTW, I sometimes use pipes *after* "grep --color=always", in order to do additional filtering (e.g. suppress some lines). And if I understand correctly, this can also be done in the zgrep script. -- Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)