Script to generate files

March 2013

The script takes in some simple arguments and then generates a folder structure and randomizes the size of the files outputted to simulate user generated content. This can be helpful when testing performance of desktop sync applications.


$ bash generatefiles.sh 2 2 3 1024
Generates 2 level deep with 2 folders in each level. Each folder has 3 files that are between 0bytes and 1KB

The above command would generate a folder structure two levels deep, with two folders at each level, with three files in each folder, files having a max size of one kilobyte and a minimum size of zero bytes.

Subscribe to updates

I'll never share your email with anyone else.