#!/bin/bash
cd ~/Downloads;
find . -maxdepth 1 -name '*.HEIC' -mtime +15 -exec mv {} ./picture \;
find . -maxdepth 1 -name '*.JPG' -mtime +15 -exec mv {} ./picture \;
find . -maxdepth 1 -name '*.jpeg' -mtime +15 -exec mv {} ./picture \;
find . -maxdepth 1 -name '*.jpg' -mtime +15 -exec mv {} ./picture \;
find . -maxdepth 1 -name '*.mp4' -mtime +15 -exec mv {} ./picture \;
find . -maxdepth 1 -name '*.png' -mtime +15 -exec mv {} ./picture \;
find . -maxdepth 1 -name '*.docx' -mtime +15 -exec mv {} ./document \;
find . -maxdepth 1 -name '*.dot' -mtime +15 -exec mv {} ./document \;
find . -maxdepth 1 -name '*.hwp' -mtime +15 -exec mv {} ./document \;
find . -maxdepth 1 -name '*.key' -mtime +15 -exec mv {} ./document \;
find . -maxdepth 1 -name '*.pdf' -mtime +15 -exec mv {} ./document \;
find . -maxdepth 1 -name '*.pptx' -mtime +15 -exec mv {} ./document \;
find . -maxdepth 1 -name '*.xls' -mtime +15 -exec mv {} ./document \;
find . -maxdepth 1 -name '*.xlsx' -mtime +15 -exec mv {} ./document \;
find . -maxdepth 1 -name '*.dmg' -mtime +15 -exec mv {} ./program \;
find . -maxdepth 1 -name '*.bz2' -mtime +15 -exec mv {} ./zip \;
find . -maxdepth 1 -name '*.tar' -mtime +15 -exec mv {} ./zip \;
find . -maxdepth 1 -name '*.zip' -mtime +15 -exec mv {} ./zip \;
find . -maxdepth 1 -name '*.json' -mtime +15 -exec mv {} ./etc \;
find . -maxdepth 1 -name '*.pl' -mtime +15 -exec mv {} ./etc \;
find . -maxdepth 1 -name '*.py' -mtime +15 -exec mv {} ./etc \;
find . -maxdepth 1 -name '*.sql' -mtime +15 -exec mv {} ./etc \;
cd -;
cd ~/interview
find . -maxdepth 1 -not -path . -mtime +1 -exec rm -rf {} \;
cd -;