[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: |
Mon, 27 Aug 2007 19:49:53 +0200 |
User-agent: |
Mutt/1.5.9i |
On Mon, Aug 27, 2007 at 10:04:57AM +0100, Pádraig Brady wrote:
> I think this (rarely used) functionality is
> adequately provided by existing tools:
>
> cat -n | sed -n '1,10p;50,80p;80q'
Not so sure, but sed doesn't allow for line offsets relative
from the end, nor does it work on multiple files, ie. streams,
at once. Furthermore, we needed (at work) filename output for
each stream processed.