Skip to content

Instantly share code, notes, and snippets.

@bigsquirrel
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bigsquirrel/fd3be8bf082a87e70f98 to your computer and use it in GitHub Desktop.
Save bigsquirrel/fd3be8bf082a87e70f98 to your computer and use it in GitHub Desktop.
random generate a large number of files
#!/bin/bash
for i in $(seq 1 5000);
do
dd if=input of=${i}.data bs=1k count=1024; # bs stands for block size, count stands for the block number
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment