Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Splitting Large File into many small ones.

by Paulster2 (Priest)
on Dec 08, 2003 at 21:54 UTC ( [id://313261]=note: print w/replies, xml ) Need Help??


in reply to Splitting Large File into many small ones.

What kind of system are you running. I know that on a UNIX system you can do this through the command line. I think it's called split, but I'm not sure off the top of my head. It does it really fast though.

UPDATE: Went out and looked. It is split that does it on UNIX, with a caveat. It parses out using what ever filename you give it with the extensions being (filename)aa through (filename)zz. If you don't provide a filename it uses x as the filename so you end up with xaa through xzz, for a grand total of 676 files max. You can, however, split those 676 files into smaller files using the same methodry. The default file length that split gives is 1000 lines, so you might have to do some math and adjust accordingly to your file size.

Paulster2

  • Comment on Re: Splitting Large File into many small ones.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://313261]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-24 13:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found