- Unix provides a command to directly split a line using length of new lines. There is a command 'fold' to do this:
e.g. fold -2000 file > outputFile.
It will break all the lines in file "file" into lines of maximum length 2000 characters.
- Another way to do this is using sed or perl command. Using this command line can be broke around a character and also minimum number of character can be defined in each new line