|
Answer» First of all i using WINDOWS OS and not LINUX,all i want is to Split a big file from Dos/windows text file into smaller multiple Unix text files?All tools i tried,they spliting from dos/windows format to dos or from unix to dos,i want a tool,a bat, a command line,anything to split from dos or unix to unix
5mb.txt(unix or dos format)--> split in 705 pieces Unix format (80 kb each)
thank you1. Windows port of dos2unix
http://waterlan.home.xs4all.nl/dos2unix/dos2unix-7.3.4-win32.zip
2. GNU Utilities (contains split.exe Windows port of Unix split utility)
http://gnuwin32.sourceforge.net/downlinks/coreutils-bin-zip.php
Yes you need to look into the unix commands and Linux commands and become familiar with the tools that can break large files into smaller files you would use something like her said or perhaps GRIP. Oops, I meant to say grip grip who on this speech recognition thing. What I wanted to say is there Unix utility that can work on a text file and break it up into many pieces I believe it's called TRAP. Crypt no crap oh crap. No lie or or Linux utilities that can do what you want. Then after you get the files broken into smaller things there is some sort of way to convert it into the the type of file most often USED by Windows editors. Something about the Line Feed and carriage return combinations. But that's a trivial point. What is tough is to find a text editor or utility that can handle the huge size that you are asking for. Off the top of my head I don't know if I can be done and said I meant to say SED not setHow do you want your files split?
It it using an exact filesize? Before or after the conversion to Unix? Unix uses a FEWER number of characters after the change in line endings.
Or do you want a certain number of lines in each file?
I'm asking the questions because your lines could be cut in the middle of a word if you simply specify a filesize.
Quote from: foxidrive on July 06, 2016, 02:20:50 AM How do you want your files split?
It it using an exact filesize? Before or after the conversion to Unix? Unix uses a fewer number of characters after the change in line endings.
Or do you want a certain number of lines in each file?
I'm asking the questions because your lines could be cut in the middle of a word if you simply specify a filesize.
Foxi, you beat me to it. The dos/unix aspect makes me think of lines rather than merely blocks of characters. Rather more information required.
|