From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653755322538.tru64-unix-managers.marc@archive.invalid> From: George Gallen Date: Mon, 22 Apr 2002 18:05:56 +0000 To: tru64-unix-managers Subject: Chopping a very large file into smaller files X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653755322538 We recently did a large emailing, and alot of the emails were refused (mostly because of being old email addresses). I have custom software that goes through the /usr/spool/mail/username incoming mail file, and strips out the email addresses, so we can update our files.....HOWEVER, this time the file is VERY large (apx 150meg) which our program can not handle in memory. Is there any way to cut the file into pieces, but only break on certain instances (like From ) so It won't split any emails? If no easy methods, then I'll write something in PERL that will do what I need. Figured before I go and re-invent... We are currently on 3.2c (I know...it's old) but I don't think that really matters here, it's more of general unix utility question. Thanks George George Gallen Senior Programmer/Analyst Accounting/Data Division ggallen@slackinc.com ph:856.848.1000 Ext 220 SLACK Incorporated - An innovative information, education and management company http://www.slackinc.com