Created
October 18, 2016 07:19
-
-
Save kmmbvnr/0c55b60c6383117d1eae17a3a4432174 to your computer and use it in GitHub Desktop.
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 | |
DWDIR=~/Downloads/`date +%Y-%m-%d` | |
if [ ! -d $DWDIR ]; then | |
cd ~/Downloads/ && find -maxdepth 1 -type d -empty -delete | |
mkdir $DWDIR | |
unlink ~/Downloads/Current | |
ln -sf $DWDIR ~/Downloads/Current | |
fi; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment