From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653755322542.tru64-unix-managers.marc@archive.invalid> From: George Gallen Date: Mon, 22 Apr 2002 19:11:57 +0000 To: tru64-unix-managers Subject: SUMMARY: Chopping a very large file into smaller files X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653755322542 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------_=_NextPart_001_01C1EA31.97267D80" This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C1EA31.97267D80 Content-Type: text/plain; charset="iso-8859-1" It's looking like csplit is what I'm looking for. I haven't tried it yet, but from the mans it looks good. Either way, I'll still put together a PERL routine that will do that I'll post a URL to it when it's finished. George >-----Original Message----- >From: George Gallen [mailto:ggallen@slackinc.com] >Sent: Monday, April 22, 2002 1:06 PM >To: 'tru64-unix-managers@ornl.gov' >Subject: Chopping a very large file into smaller files > > >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 > ------_=_NextPart_001_01C1EA31.97267D80 Content-Type: text/html; charset="iso-8859-1" SUMMARY: Chopping a very large file into smaller files

It's looking like csplit is what I'm looking for. I haven't tried
it yet, but from the mans it looks good.

Either way, I'll still put together a PERL routine that will do that
I'll post a URL to it when it's finished.

George

>-----Original Message-----
>From: George Gallen [mailto:ggallen@slackinc.com]
>Sent: Monday, April 22, 2002 1:06 PM
>To: 'tru64-unix-managers@ornl.gov'
>Subject: Chopping a very large file into smaller files
>
>
>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
>

------_=_NextPart_001_01C1EA31.97267D80--