From: George Gallen <ggallen () slackinc ! com>
To: tru64-unix-managers
Subject: SUMMARY: Chopping a very large file into smaller files
Date: Mon, 22 Apr 2002 19:11:57 +0000 [thread overview]
Message-ID: <102653755322542.tru64-unix-managers.marc@archive.invalid> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------_=_NextPart_001_01C1EA31.97267D80", Size: 4997 bytes --]
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"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>SUMMARY: Chopping a very large file into smaller files</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>It's looking like csplit is what I'm looking for. I haven't tried</FONT>
<BR><FONT SIZE=2>it yet, but from the mans it looks good.</FONT>
</P>
<P><FONT SIZE=2>Either way, I'll still put together a PERL routine that will do that</FONT>
<BR><FONT SIZE=2>I'll post a URL to it when it's finished.</FONT>
</P>
<P><FONT SIZE=2>George</FONT>
</P>
<P><FONT SIZE=2>>-----Original Message-----</FONT>
<BR><FONT SIZE=2>>From: George Gallen [<A HREF="mailto:ggallen@slackinc.com">mailto:ggallen@slackinc.com</A>]</FONT>
<BR><FONT SIZE=2>>Sent: Monday, April 22, 2002 1:06 PM</FONT>
<BR><FONT SIZE=2>>To: 'tru64-unix-managers@ornl.gov'</FONT>
<BR><FONT SIZE=2>>Subject: Chopping a very large file into smaller files</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>We recently did a large emailing, and alot of the emails were refused</FONT>
<BR><FONT SIZE=2>>(mostly because of being old email addresses).</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>I have custom software that goes through the /usr/spool/mail/username </FONT>
<BR><FONT SIZE=2>>incoming mail file, and strips out the email addresses, so we </FONT>
<BR><FONT SIZE=2>>can update</FONT>
<BR><FONT SIZE=2>>our files.....HOWEVER, this time the file is VERY large (apx 150meg)</FONT>
<BR><FONT SIZE=2>>which our program can not handle in memory.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>Is there any way to cut the file into pieces, but only break on certain</FONT>
<BR><FONT SIZE=2>>instances (like From ) so It won't split any emails?</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>If no easy methods, then I'll write something in PERL that will do what</FONT>
<BR><FONT SIZE=2>>I need.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>Figured before I go and re-invent...</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>We are currently on 3.2c (I know...it's old) but I don't think </FONT>
<BR><FONT SIZE=2>>that really</FONT>
<BR><FONT SIZE=2>>matters</FONT>
<BR><FONT SIZE=2>>here, it's more of general unix utility question.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>Thanks</FONT>
<BR><FONT SIZE=2>>George</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>George Gallen</FONT>
<BR><FONT SIZE=2>>Senior Programmer/Analyst</FONT>
<BR><FONT SIZE=2>>Accounting/Data Division</FONT>
<BR><FONT SIZE=2>>ggallen@slackinc.com</FONT>
<BR><FONT SIZE=2>>ph:856.848.1000 Ext 220</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>SLACK Incorporated - An innovative information, education and </FONT>
<BR><FONT SIZE=2>>management</FONT>
<BR><FONT SIZE=2>>company</FONT>
<BR><FONT SIZE=2>><A HREF="http://www.slackinc.com" TARGET="_blank">http://www.slackinc.com</A></FONT>
<BR><FONT SIZE=2>></FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C1EA31.97267D80--
reply other threads:[~2002-04-22 19:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox