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

Re: How do i split a file into given number of parts.

by trentonl (Initiate)
on Dec 21, 2004 at 20:20 UTC ( [id://416610]=note: print w/replies, xml ) Need Help??


in reply to How do i split a file into given number of parts.

Since you're just writing them out, perhaps you can use the unix 'split' command?
# n files each with no more than 10000 lines
split --lines=10000 

# files contaning at most 1 meg
split --bytes=1m

  • Comment on Re: How do i split a file into given number of parts.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (8)
As of 2024-04-20 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found