当执行:
cat THUCNews/gupiao/* > gupiao_all_text.txt
报错:
sh/bash Argument list too long
原因是gupiao中文件数量较大
解决办法:
find THUCNews/gupiao/ -name "*.txt" | xargs -i cat {} > gupiao_all_text.txt
2022-10-14 08:40:49
当执行:
cat THUCNews/gupiao/* > gupiao_all_text.txt
报错:
sh/bash Argument list too long
原因是gupiao中文件数量较大
解决办法:
find THUCNews/gupiao/ -name "*.txt" | xargs -i cat {} > gupiao_all_text.txt