tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Chopping a very large file into smaller files
@ 2002-04-22 19:11 George Gallen
  0 siblings, 0 replies; only message in thread
From: George Gallen @ 2002-04-22 19:11 UTC (permalink / raw)
  To: tru64-unix-managers

[-- 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>&gt;-----Original Message-----</FONT>
<BR><FONT SIZE=2>&gt;From: George Gallen [<A HREF="mailto:ggallen@slackinc.com">mailto:ggallen@slackinc.com</A>]</FONT>
<BR><FONT SIZE=2>&gt;Sent: Monday, April 22, 2002 1:06 PM</FONT>
<BR><FONT SIZE=2>&gt;To: 'tru64-unix-managers@ornl.gov'</FONT>
<BR><FONT SIZE=2>&gt;Subject: Chopping a very large file into smaller files</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;We recently did a large emailing, and alot of the emails were refused</FONT>
<BR><FONT SIZE=2>&gt;(mostly because of being old email addresses).</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;I have custom software that goes through the /usr/spool/mail/username </FONT>
<BR><FONT SIZE=2>&gt;incoming mail file, and strips out the email addresses, so we </FONT>
<BR><FONT SIZE=2>&gt;can update</FONT>
<BR><FONT SIZE=2>&gt;our files.....HOWEVER, this time the file is VERY large (apx 150meg)</FONT>
<BR><FONT SIZE=2>&gt;which our program can not handle in memory.</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;Is there any way to cut the file into pieces, but only break on certain</FONT>
<BR><FONT SIZE=2>&gt;instances (like From ) so It won't split any emails?</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;If no easy methods, then I'll write something in PERL that will do what</FONT>
<BR><FONT SIZE=2>&gt;I need.</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;Figured before I go and re-invent...</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;We are currently on 3.2c (I know...it's old) but I don't think </FONT>
<BR><FONT SIZE=2>&gt;that really</FONT>
<BR><FONT SIZE=2>&gt;matters</FONT>
<BR><FONT SIZE=2>&gt;here, it's more of general unix utility question.</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;Thanks</FONT>
<BR><FONT SIZE=2>&gt;George</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;George Gallen</FONT>
<BR><FONT SIZE=2>&gt;Senior Programmer/Analyst</FONT>
<BR><FONT SIZE=2>&gt;Accounting/Data Division</FONT>
<BR><FONT SIZE=2>&gt;ggallen@slackinc.com</FONT>
<BR><FONT SIZE=2>&gt;ph:856.848.1000 Ext 220</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;SLACK Incorporated - An innovative information, education and </FONT>
<BR><FONT SIZE=2>&gt;management</FONT>
<BR><FONT SIZE=2>&gt;company</FONT>
<BR><FONT SIZE=2>&gt;<A HREF="http://www.slackinc.com" TARGET="_blank">http://www.slackinc.com</A></FONT>
<BR><FONT SIZE=2>&gt;</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C1EA31.97267D80--

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-04-22 19:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-22 19:11 SUMMARY: Chopping a very large file into smaller files George Gallen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox