ฉันพบวิธีใน 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.txthttp://www.windows-commandline.com/how-to-create-large-dummy-file/
มีวิธีใดใน UNIX ที่จะคัดลอกไฟล์ผนวกและทำซ้ำกระบวนการหรือไม่? สิ่งที่ชอบfor .. cat file1.txt > file1.txt?
for i in {1..1000000};do echo "string" >> file;doneในทุบตี
                type file >> fileจะทำงานในวงวนไม่สิ้นสุด (อย่างน้อยก็ทันทีที่มีขนาดใหญ่พอที่จะไม่พอดีกับบัฟเฟอร์)