Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: split a file into number of file based on line count

by JavaFan (Canon)
on May 13, 2009 at 09:50 UTC ( [id://763708]=note: print w/replies, xml ) Need Help??


in reply to Re^2: split a file into number of file based on line count
in thread split a file into number of file based on line count

That sounds like it can be golfed.
split -l$((`cat filename|wc -l`/5+1)) filename

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-18 01:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found