Skip to content

Instantly share code, notes, and snippets.

@rojenzaman
Created May 30, 2021 11:14
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 rojenzaman/ca566dbc2968263adddcf07e95be2d66 to your computer and use it in GitHub Desktop.
Save rojenzaman/ca566dbc2968263adddcf07e95be2d66 to your computer and use it in GitHub Desktop.
Generate randomly directories by given count.
#!/bin/bash
if [ "$#" -lt 2 ]; then
echo "./`basename $0` <count> <dir>";
exit 1;
fi
for i in `seq 1 $1`; do
mktemp -d -t temp-XXXXXXXXXX --tmpdir=$2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment