Out of control mailbox

Ted Gould ted at gould.cx
Fri Jul 24 10:15:31 MST 2009


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20090724/56e33d6d/attachment.pgp 


More information about the PLUG-discuss mailing list