Re: Out of control mailbox

Top Page
Attachments:
Message as email
+ (text/plain)
+ signature.asc (application/pgp-signature)
+ (text/plain)
Delete this message
Reply to this message
Author: Ted Gould
Date:  
To: Main PLUG discussion list
Subject: Re: Out of control mailbox
On Fri, 2009-07-24 at 12:10 -0500, Alex Dean wrote:
> On Jul 24, 2009, at 12:00 PM, Joe wrote:
> > How can I remove from line 0 to line 1000000 (as an example) from the
> > file? Or, how can I export from line 1000001 to the end in a new file
> > (which I could then replace the current mailbox file with)? I have no
> > idea how to accomplish either.
>
> Try split. 'man split' It will break 1 file into many, and you can
> give it criteria like 'split after X lines'...


You can also play with "head" and "tail". They'll give you the first
part or last part of a file. You can specify the number of lines that
you want them to give. "wc -l" will give you the total number of lines
in a file.

        --Ted


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss