Я пытался разделить большой файл с помощью split
команда, но наряду с этим я должен сделать следующее:
Я попробовал следующее:
split -dl 10000 "/root/Dumps/" "/root/Dumps/split/${new%.txt}";
но я получаю эту ошибку
split: output file suffixes exhausted
и добавить расширение я использую --additional-suffix=.txt
но я получаю следующую ошибку
split: unrecognized option '--additional-suffix=.txt'
Править: Вывод apt-cache policy coreutils
If 'apt-cache' is not a typo you can run the following command to lookup the package that contains the binary:
command-not-found apt-cache
bash: apt-cache: command not found
Какая-либо справка?
Заранее спасибо
В моем случае ни один из способов не работает. Итак, я просто поставил код для его изменения.
split -dl 10000 "/root/Dumps/" "/root/Dumps/split/new; for input in new*;
do mv $input ${input}.txt;done