Randy Schmidt on 8 Nov 2006 22:07:08 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] chopping files


If you just split a file used to load a db...won't that split up the
sql in a possibly inconvenient location that may break the sql
statements? Could you split it up into individual tables?

On 11/8/06, Kyle R. Burton <kyle.burton@gmail.com> wrote:
On 11/8/06, Jeff Watson <redgibson@gmail.com> wrote:
> Is there a utility i can use to chop a large text file into x number of
> smaller peices of the same file? I am loading a database and i think the
> file size is an issue so i want to cut it into peices and load them
> individually?

The split(1) command might be what you're after.  It can split a file
based on bytes, or by lines (if it's text).

hth

Kyle
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug



--
Randy Schmidt
x@altorg.com
267.334.6833
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug