小编Tho*_*Lee的帖子

如何在 UNIX 中创建大文件?

我在 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什么?

shell files

25
推荐指数
5
解决办法
3万
查看次数

标签 统计

files ×1

shell ×1