Skip to content

Instantly share code, notes, and snippets.

@andreldm
Created August 2, 2017 17:24
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 andreldm/99c87f55421586d2a24c94469336c597 to your computer and use it in GitHub Desktop.
Save andreldm/99c87f55421586d2a24c94469336c597 to your computer and use it in GitHub Desktop.
Script to create random folders
#!/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