Skip to content

Instantly share code, notes, and snippets.

@nishad
Created July 7, 2018 15:15
Show Gist options
  • Save nishad/ca6576477c52a6b415ec2ffd86e4c805 to your computer and use it in GitHub Desktop.
Save nishad/ca6576477c52a6b415ec2ffd86e4c805 to your computer and use it in GitHub Desktop.
Simple clean and backup script for OSX Downloads folder
#!/bin/bash
time_stamp=$(date +%Y-%m-%d)
mkdir -p ~/Backup/Downloads/$time_stamp
mv ~/Downloads/* ~/Backup/Downloads/$time_stamp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment