Skip to content

Instantly share code, notes, and snippets.

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