![]() |
|
text splitter - Printable Version +- kanji koohii FORUM (http://forum.koohii.com) +-- Forum: Learning Japanese (http://forum.koohii.com/forum-4.html) +--- Forum: Learning resources (http://forum.koohii.com/forum-9.html) +--- Thread: text splitter (/thread-6881.html) |
text splitter - nest0r - 2010-12-13 So um, anyone know how to split a text file by lines? Like a 122,000 line .txt file into 10 files without breaking the lines. I tried something called Simple Text Splitter but that doesn't work for UTF-8 and for Unicode it changes kanji/kana to question marks; textSplitter has a naming scheme that I can't figure out. text splitter - pm215 - 2010-12-13 This is one of those things that's trivial in Unix because there's been a standard utility for the job provided with the OS for the last 30 years: Code: split -l 12200 input.txt outprefixtext splitter - nest0r - 2010-12-13 Thanks but I just 'facepalmed' and realized that now that I've got a good PC and now that I figured out how to take a certain txt and flip the strings around per line, I could use a certain tool and all is well. Yeah that's not vague at all, because I used the word 'certain'. That being the case, I shall soon have something good to share for neurotic cloud-fearing people like myself. Edit: Hmm actually maybe not. Didn't realize the size... Edit 2: n/m That certain tool doesn't work. Back to the drawing board. text splitter - Blahah - 2010-12-13 You can do this using the Swiss File Knife. Use the split command. text splitter - nest0r - 2010-12-13 Blahah Wrote:You can do this using the Swiss File Knife. Use the split command.Program won't run for me. text splitter - Blahah - 2010-12-13 nest0r Wrote:from the command line?Blahah Wrote:You can do this using the Swiss File Knife. Use the split command.Program won't run for me. text splitter - nest0r - 2010-12-13 Blahah Wrote:From your (insert living healthy relative here)'s house.nest0r Wrote:from the command line?Blahah Wrote:You can do this using the Swiss File Knife. Use the split command.Program won't run for me. Actually I got things working via a different route, re: the large .txt, so I guess it's all taken care of. |