Issue
command 'touch "file{1..10}".txt' creates 10 files file1.txt, file2.txt .... etc. How can we also create multiple file with specific file size in this form.
what I tried:
fallocate -l 10M file{1..10}.txt
Output
fallocate: unexpected number of arguments
Solution
You could use truncate
to extend the size of a file to a specific size
truncate -s 10M file{1..10}.txt
Answered By - ramsay Answer Checked By - Cary Denson (WPSolving Admin)