So here is what I mean by the previous post. The script is a script I created to cleanup junk files off of my SAMBA share. Windows and other programs like to create junk data files. I like everything on my drive clean.
Code:
#!/bin/sh
#Cleanup Data Folder
#Deletes "Thumbs.db thumbs.db AlbumArtSmall.jpg *.ini DS_Store files"
echo "Cleaning up Data Folder!"
sudo chmod -R 777 /Data/
find /Data/ -iname 'thumbs.db' -exec rm {} \;
find /Data/ -iname "album*.jpg" -exec rm {} \;
find /Data/ -iname "*.ini" -exec rm {} \;
find /Data/ -iname ".DS_Store" -exec rm {} \;
find /Data/ -iname "._.DS_store" -exec rm {} \;
Warning: Be extremely careful when playing with scripts that delete files. You could on accident delete important files!
Bookmarks