Date: Fri, 17 Nov 2000 11:11:42 -0600 From: Matt Schlosser <mschlosser@eschelon.com> To: 'George Reid' <greid@ukug.uk.freebsd.org> Cc: "'freebsd-questions@freebsd.org'" <freebsd-questions@freebsd.org> Subject: RE: file splitting Message-ID: <C1781C38F13DA040848FEFAD07311B1036D6C9@walleye.corp.fishnet.com>
next in thread | raw e-mail | index | archive | help
I tried to do this in PERL, but opening the file into memory is exactly what I can't do (kills the box). Anyway, I found an X app that does this well. ProSplitter 2.0 avialable at: http://www.users.globalnet.co.uk/~agra/oscar/ DaveCentral had a review: http://linux.davecentral.com/3570_filesplit.html Thanks for the advice! --- Matthew Schlosser Systems Administrator Eschelon Telecom, Inc. Phone: 612/436-6045 E-Mail: mschlosser@eschelon.com General Help or Questions: sysadmin@eschelon.com -----Original Message----- From: George Reid [mailto:greid@ukug.uk.freebsd.org] Sent: Friday, November 17, 2000 10:39 AM To: Matt Schlosser Cc: 'freebsd-questions@freebsd.org' Subject: Re: file splitting On Fri, 17 Nov 2000, Matt Schlosser wrote: > What would be the fastest method of splitting a text file (200MB) into 20MB > sections while keeping line length intact? You could use split(1), but the two criteria are incompatible. split -l <num> <file> will split file into num lines, and split -b 20m <file> will split the file into 20 megabyte sections. For greater power, use regular expressions (re_format(7)) in something like perl. However, I'm no perl guru. G "And then it comes to be that the soothing light at the end of your tunnel was just a freight train, comin' your way." George Reid * greid@ukug.uk.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C1781C38F13DA040848FEFAD07311B1036D6C9>