Date: Fri, 17 Nov 2000 10:23:44 -1000 From: Gary Dunn <gdunng@mac.com> To: Matt Schlosser <mschlosser@eschelon.com>, "'freebsd-questions@freebsd.org'" <freebsd-questions@FreeBSD.ORG> Subject: Re: file splitting Message-ID: <00111710415402.03598@shf102107.hi.pac.army.mil> In-Reply-To: <C1781C38F13DA040848FEFAD07311B1036D6C6@walleye.corp.fishnet.com> References: <C1781C38F13DA040848FEFAD07311B1036D6C6@walleye.corp.fishnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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? > An approximate solution: wc myfile output: lines, words, chars 200/20 = 10, so compute linesPerPiece as lines/10 split -l linesPerPiece myfile -- == Gary Dunn == Honolulu == Open Slate Project 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?00111710415402.03598>