summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorrafa_99 <rafa99@protonmail.com>2019-11-20 23:14:32 +0000
committerrafa_99 <rafa99@protonmail.com>2019-11-20 23:14:32 +0000
commit9c3f37ffc37c3826107d352b4f6a72ad36d001ba (patch)
tree6fba7bdab27e631d374cfb678bdb6dd696803be3 /.config
parentf929788a1bec89bfee3f6978d1808a97b0dcb8d8 (diff)
Updated Organizer Script
Diffstat (limited to '.config')
-rwxr-xr-x.config/scripts/organize60
1 files changed, 30 insertions, 30 deletions
diff --git a/.config/scripts/organize b/.config/scripts/organize
index 850a19c..a91113c 100755
--- a/.config/scripts/organize
+++ b/.config/scripts/organize
@@ -5,34 +5,34 @@
echo "Organizing Files..."
mkdir ~/tmp
#Looking for file extension | Ignoring Some Specified Folders | Ignoring .files | Moving files to temp folder and redirects the to the correct folder
-find ~ -type f -iname '*.pdf' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/PDF/ 2>/dev/null
-find ~ -type f -iname '*.*md' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Markdown/ 2>/dev/null
-find ~ -type f -iname '*.doc*' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Word/ 2>/dev/null
-find ~ -type f -iname '*.odt' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Word/ 2>/dev/null
-find ~ -type f -iname '*.ppt*' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Powerpoint/ 2>/dev/null
-find ~ -type f -iname '*.xl*' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Excel/ 2>/dev/null
-find ~ -type f -iname '*.iso' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Disks/ 2>/dev/null
-find ~ -type f -iname '*.img' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Disks/ 2>/dev/null
-find ~ -type f -iname '*.jpeg' | grep -Evi "/repositories/|/cloud/|/trabalho/|/music/" | grep -vi Music | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Pictures/ 2>/dev/null
-find ~ -type f -iname '*.jpg' | grep -Evi "/repositories/|/cloud/|/trabalho/|/music/" | grep -vi Music | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Pictures/ 2>/dev/null
-find ~ -type f -iname '*.png' | grep -Evi "/repositories/|/cloud/|/trabalho/|/music/" | grep -vi Music | grep -vi ~/"[.*]" | grep -vi screenshot | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Pictures/ 2>/dev/null
-find ~ -type f -iname '*.gif' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Pictures/ 2>/dev/null
-find ~ -type f -iname '*.bmp' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Pictures/ 2>/dev/null
-find ~ -type f -iname '*.xcf' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Pictures/GIMP/ 2>/dev/null
-find ~ -type f -iname '*.ogg' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | grep -vi "$HOME"/Music | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Music/ 2>/dev/null
-find ~ -type f -iname '*.flac' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | grep -vi "$HOME"/Music | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Music/ 2>/dev/null
-find ~ -type f -iname '*.mp3' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | grep -vi "$HOME"/Music | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Music/ 2>/dev/null
-find ~ -type f -iname '*.midi' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | grep -vi "$HOME"/Music | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Music/ 2>/dev/null
-find ~ -type f -iname '*.wav' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | grep -vi "$HOME"/Music | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Music/ 2>/dev/null
-find ~ -type f -iname '*.mp4' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Videos/ 2>/dev/null
-find ~ -type f -iname '*.3gp' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Videos/ 2>/dev/null
-find ~ -type f -iname '*.mkv' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Videos/ 2>/dev/null
-find ~ -type f -iname '*.avi' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Videos/ 2>/dev/null
-find ~ -type f -iname '*.txt' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Text/ 2>/dev/null
-find ~ -type f -iname '*.zip' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Archives/ 2>/dev/null
-find ~ -type f -iname '*.rar' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Archives/ 2>/dev/null
-find ~ -type f -iname '*.gz*' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Archives/ 2>/dev/null
-find ~ -type f -iname '*.tar' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Archives/ 2>/dev/null
-find ~ -type f -iname '*.xz' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Archives/ 2>/dev/null
-find ~ -type f -iname 'screenshot*.png' | grep -Evi "/repositories/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Pictures/Screenshots/ 2>/dev/null
+find ~ -type f -iname '*.pdf' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/PDF/ 2>/dev/null
+find ~ -type f -iname '*.*md' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Markdown/ 2>/dev/null
+find ~ -type f -iname '*.doc*' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Word/ 2>/dev/null
+find ~ -type f -iname '*.odt' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Word/ 2>/dev/null
+find ~ -type f -iname '*.ppt*' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Powerpoint/ 2>/dev/null
+find ~ -type f -iname '*.xl*' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Excel/ 2>/dev/null
+find ~ -type f -iname '*.iso' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Disks/ 2>/dev/null
+find ~ -type f -iname '*.img' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Disks/ 2>/dev/null
+find ~ -type f -iname '*.jpeg' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/|/music/" | grep -vi Music | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Pictures/ 2>/dev/null
+find ~ -type f -iname '*.jpg' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/|/music/" | grep -vi Music | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Pictures/ 2>/dev/null
+find ~ -type f -iname '*.png' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/|/music/" | grep -vi Music | grep -vi ~/"[.*]" | grep -vi screenshot | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Pictures/ 2>/dev/null
+find ~ -type f -iname '*.gif' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Pictures/ 2>/dev/null
+find ~ -type f -iname '*.bmp' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Pictures/ 2>/dev/null
+find ~ -type f -iname '*.xcf' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Pictures/GIMP/ 2>/dev/null
+find ~ -type f -iname '*.ogg' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | grep -vi "$HOME"/Music | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Music/ 2>/dev/null
+find ~ -type f -iname '*.flac' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | grep -vi "$HOME"/Music | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Music/ 2>/dev/null
+find ~ -type f -iname '*.mp3' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | grep -vi "$HOME"/Music | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Music/ 2>/dev/null
+find ~ -type f -iname '*.midi' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | grep -vi "$HOME"/Music | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Music/ 2>/dev/null
+find ~ -type f -iname '*.wav' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | grep -vi "$HOME"/Music | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Music/ 2>/dev/null
+find ~ -type f -iname '*.mp4' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Videos/ 2>/dev/null
+find ~ -type f -iname '*.3gp' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Videos/ 2>/dev/null
+find ~ -type f -iname '*.mkv' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Videos/ 2>/dev/null
+find ~ -type f -iname '*.avi' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Videos/ 2>/dev/null
+find ~ -type f -iname '*.txt' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Text/ 2>/dev/null
+find ~ -type f -iname '*.zip' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Archives/ 2>/dev/null
+find ~ -type f -iname '*.rar' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Archives/ 2>/dev/null
+find ~ -type f -iname '*.gz*' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Archives/ 2>/dev/null
+find ~ -type f -iname '*.tar' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Archives/ 2>/dev/null
+find ~ -type f -iname '*.xz' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Documents/Archives/ 2>/dev/null
+find ~ -type f -iname 'screenshot*.png' | grep -Evi "/repositories/|/games/|/cloud/|/trabalho/" | grep -vi ~/"[.*]" | xargs -I {} mv -f "{}" ~/tmp/ && mv ~/tmp/* ~/Pictures/Screenshots/ 2>/dev/null
rm -rf ~/tmp/