HI
I have the following problem.
I need to use split command to split files. Each should be cca 700 lines but i don't know how to implement it in the scripts because each time the original file will be various sizes.
anybody have any idea
cheers
Last edited by xXHalfSliceXx; 07-28-2009 at 04:24 PM.
I suggest you learn sed. sed will allow you to split files vary easily.
For example:
Code:$ sed "700q" textfile > first700lines.txt $ sed "1,700d; 1400q" textfile > next700lines.txt
Life's too short to be cool. Be a nerd.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks