Created
May 30, 2021 11:14
-
-
Save rojenzaman/ca566dbc2968263adddcf07e95be2d66 to your computer and use it in GitHub Desktop.
Generate randomly directories by given count.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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