Skip to content

Instantly share code, notes, and snippets.

@baltpeter
Created January 21, 2017 19:04
Show Gist options
  • Save baltpeter/328ec6e9b8709a940f92c6d7a2c22b14 to your computer and use it in GitHub Desktop.
Save baltpeter/328ec6e9b8709a940f92c6d7a2c22b14 to your computer and use it in GitHub Desktop.
Create 100 files with random hex-like filenames and random binary content
for n in {1..100}; do
dd if=/dev/urandom of=$( cat /dev/urandom | tr -cd 'a-f0-9' | head -c 6 ) bs=1 count=$(( RANDOM + 1024 ))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment