[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC] linecut addition
From: |
Steven Schubiger |
Subject: |
Re: [RFC] linecut addition |
Date: |
Tue, 9 Oct 2007 20:05:31 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Matthew Woehlke <address@hidden> 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?
- Re: [RFC] linecut addition, Steven Schubiger, 2007/10/06
- Re: [RFC] linecut addition, Jim Meyering, 2007/10/08
- Re: [RFC] linecut addition, Steven Schubiger, 2007/10/09
- Re: [RFC] linecut addition,
Steven Schubiger <=
- Re: [RFC] linecut addition, Matthew Woehlke, 2007/10/09
- Re: [RFC] linecut addition, Steven Schubiger, 2007/10/09
- Re: [RFC] linecut addition, Matthew Woehlke, 2007/10/09
- Re: [RFC] linecut addition, Steven Schubiger, 2007/10/09
- Re: [RFC] linecut addition, Matthew Woehlke, 2007/10/09
- Re: [RFC] linecut addition, Steven Schubiger, 2007/10/10