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
| # $1 is the path to the file that you want to move. This is automatically set in Hazel on Mac. | |
| # If you're not using this with Hazel, uncomment the line below and set the file's direct path. | |
| # 1=file/path/here | |
| # If you're using this with a different type other than pdfs, change all occurences of *.pdf in the file to *.ext, | |
| # where .ext is the extension of the file type you are targeting. | |
| # Variable to store directory structure. | |
| date=`date -r "$1" +%Y/%b/%d` |
NewerOlder