Skip to content

Instantly share code, notes, and snippets.

@cocoastorm
Created October 9, 2019 21:26
Show Gist options
  • Save cocoastorm/a804642924e3d63e2315da0fe3a3fc5f to your computer and use it in GitHub Desktop.
Save cocoastorm/a804642924e3d63e2315da0fe3a3fc5f to your computer and use it in GitHub Desktop.
Random Take
rtake () {
dirname=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
dirname="$(date +%Y-%m-%d)_$1_$dirname"
fulldir="$HOME/junk/$dirname"
echo $fulldir
mkdir -p "$fulldir"
cd "$fulldir"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment