cutting mail spool

Jeremy C. Reed reed at reedmedia.net
Fri Jul 29 11:13:00 MST 2005


On Fri, 29 Jul 2005, Craig White wrote:

> I need to cut a users mail spool file down that now is 2.0G and mail box
> isn't working.
>
> I backed up her mail spool and emptied it out and now need a way to
> edit/cut it down - emacs won't open it because it exhausts the buffer.
>
> What's a simple command to say split the thing in half?

dd if=big.mailbox of=new.file bs=1048576 count=1000

Then for the other part use something like:

dd if=big.mailbox of=other.part bs=1048576 seek=1000

Then edit as needed.

  Jeremy C. Reed

  	  	 	 BSD News, BSD tutorials, BSD links
 	  	 	 http://www.bsdnewsletter.com/


More information about the PLUG-discuss mailing list