Matthew Woehlke <[EMAIL PROTECTED]> wrote:

> Do you plan to have a means of specifying a number of lines? E.g.:
> 
> $ seq 10 | linecut --range 5,+3
> 5
> 6
> 7

I like the idea. And it should be rather easy to calculate the
ending line position. I hope the distinction between the '-' & '+'
"prefixes" would be clear enough.

> @Jim, 'addr1,addr2' syntax belongs to sed, so I would argue it isn't 
> "new". It's also easier to type when specifying only one range :-).

Well, I initially started writing linecut with sed in mind, but I 
could agree to either format.

> Btw, how do you match 5 through end? '5,-0'? 

Yes.

> What does a reversed range (e.g. '5,2') match?

That shouldn't be allowed. Or should it?


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to