Created
August 2, 2017 17:24
-
-
Save andreldm/99c87f55421586d2a24c94469336c597 to your computer and use it in GitHub Desktop.
Script to create random folders
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 | |
mkdir -p thunar-test | |
cd thunar-test | |
for run in {1..10}; do | |
FOLDER=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w $(shuf -i 5-40 -n 1) | head -n 1) | |
mkdir -p $FOLDER | |
cd $FOLDER | |
done | |
thunar . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment