Re: [SLUG] Slicing a file

From: Daniel Jarboe (daniel.jarboe@gmail.com)
Date: Fri May 26 2006 - 13:16:59 EDT


On 5/26/06, Eben King <eben1@tampabay.rr.com> wrote:
> If line 2000 et al should be the first line of the next segment (not the
> last line of the previous one), you need
>
> sed '1,1999!d' original > result1
> sed '2000,4999!d' original > result2
> sed '5000,7999!d' original > result3
> sed '8000,10000!d' original > result4

Eben, you might be confusing the issue here. Paul's example was
2000,3000,3000,2000, not 1999,3000,3000,2001

~ Daniel
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:24:46 EDT