How to split a file using 'split ' without destroying lines?
Im using split to break up a text file into 20 equal chunks.
Code:
split -N 20 somefile.txt I want split to knock this BS off and stop corrupting my data, and/or somehow preserve each line in one piece. Does anybody have any constructive ideas how to remedy this problem? |
Code:
split -nl/20 somefile.txt |
You are Fired.
Sir, you are fired. that nonsense does not work.
Code:
# split -nl/24 file.txt |
Your split is fired, my split has -n option.
|
Quote:
I'd help more, but your rude behavior isn't appreciated. Good luck "firing" me. |
split -nl/20 somefile.txt
It works for me on Debian 8. |
I use split from GNU coreutils, don't know for other version
https://www.gnu.org/software/coreuti...nvocation.html |
All times are GMT -5. The time now is 06:20 AM. |