in reply to splitting up data...
See also the manual page for your system's split command (presuming some form of POSIX-y-ness).