Created
March 19, 2021 23:27
-
-
Save krishnasrinivas/c8db8777508ce749bf60d39dfe075e2b to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
TMPDIR=$1 | |
usage="USAGE: mkdir.sh TMPDIR\n" | |
[ -z $TMPDIR ] && printf "$usage" && exit | |
mkdir -p $TMPDIR | |
for i in 0 1 2 3 4 5 6 7 8 9 a b c d e f | |
do | |
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f | |
do | |
for k in 0 1 2 3 4 5 6 7 8 9 a b c d e f | |
do | |
for l in 0 1 2 3 4 5 6 7 8 9 a b c d e f | |
do | |
echo $((time (mkdir -p $TMPDIR/$i$j/$k$l) 2>&1 ) | grep real | sed -e 's/real//' | tr -d '\t') | |
done | |
done | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment