bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC] linecut addition


From: Jim Meyering
Subject: Re: [RFC] linecut addition
Date: Tue, 09 Oct 2007 19:56:18 +0200

Matthew Woehlke <address@hidden> wrote:
> Steven Schubiger wrote:
>> Would `linecut --range 1:2,3:4,-100:-1` be considered sensible?
>
> Do you plan to have a means of specifying a number of lines? E.g.:
>
> $ seq 10 | linecut --range 5,+3
> 5
> 6
> 7
> $
>
> @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 :-).

Sure, but sed doesn't have the notion of a *sequence* of ranges,
so it doesn't have to worry about parsing more than one.
Compare with cut, which does.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]