Split text for google translate

https://stackoverflow.com/questions/2016894/how-to-split-a-large-text-file-into-smaller-files-with-equal-number-of-lines


lines:

split -l 200000 filename

bytes:

split -C 20m --numeric-suffixes input_filename output_prefix





txt to word list:


https://stackoverflow.com/questions/15501652/how-split-a-file-in-words-in-unix-command-line

tr -s '[[:punct:][:space:]]' '\n' < file
fmt -1 <your-file

Kommentit