我在 Windows 中找到了一种方法来做这样的事情
echo "This is just a sample line appended to create a big file. " > dummy.txt
for /L %i in (1,1,21) do type dummy.txt >> dummy.txt
Run Code Online (Sandbox Code Playgroud)
http://www.windows-commandline.com/how-to-create-large-dummy-file/
在 UNIX 中有没有办法复制文件、追加然后重复该过程?像for .. cat file1.txt > file1.txt什么?