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.


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to