Skip to content

Instantly share code, notes, and snippets.

@ayoisaiah
Created February 22, 2021 08:44
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 ayoisaiah/868437602e73084ebc11efcec262e92c to your computer and use it in GitHub Desktop.
Save ayoisaiah/868437602e73084ebc11efcec262e92c to your computer and use it in GitHub Desktop.
Benchmark preparation script for F2
#!/usr/bin/bash
dirs="dir1/dir2/dir3/dir4/dir5"
if [ ! -d $dirs ]
then
mkdir -p $dirs
fi
find ./dir1 ! -name '.*' ! -type d -exec rm -- {} +
( IFS=/
for p in $dirs; do
cd $p
for i in {1..2000}; do touch "pic-$i.png"; done
done
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment