[英]Git Bash Error on split multiple text files : split: extra operand ‘DPtr3ltmwr3PI.txt’
I use Git Bash on Windows 10 to split multiple text files.我使用 Git Bash on Windows 10 拆分多个文本文件。 I open Git Bash in the folder with those.txt files, and I use this formula:
我在包含 those.txt 文件的文件夹中打开 Git Bash,我使用以下公式:
$ split -b 500k *.txt
And I get this error:我得到这个错误:
split: extra operand ‘DPtr3ltmwr3PI.txt’
Try 'split --help' for more information.
Why is this happening?为什么会这样?
You can use cat
to print all files and pipe the output to the split
command您可以使用
cat
打印所有文件和 pipe output 到split
命令
cat *.txt | split -b 500k
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.