bug-coreutils
[Top][All Lists]
Advanced

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

Re: [RFC] linecut addition


From: Pádraig Brady
Subject: Re: [RFC] linecut addition
Date: Mon, 27 Aug 2007 10:04:57 +0100
User-agent: Thunderbird 1.5.0.8 (X11/20061116)

Steven Schubiger wrote:
> I've written a small utility that does easily extract line slices. It has
> currently one convenience switch "-n", which triggers numbered output.
> 
> Sample invocations:
> 
>  $ linecut --range 1,10:50,80:-200,-1 --number <file>
>  $ linecut --range 10,-10 --number <file>
>  $ linecut --range 15,15:18,18 --number <file>

I think this (rarely used) functionality is
adequately provided by existing tools:

cat -n | sed -n '1,10p;50,80p;80q'

thanks,
Pádraig.




reply via email to

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