A SCRIPT that makes your Downloads directory neat!!
I made a utility for myself that will help me find downloaded files more easily than before. It is a shell scripts that analyzes the filename of the downloaded file and places it in a directory named by its extension. This means a pdf file will go to a directory named pdf as soon as it is downloaded. This works for all file extensions. I intend to make it better . It is going to help those whose Downloads directory is always cluttered (like mine :P ). You can get it at https://github.com/light94/myShellScripts/blob/master/sortDownloadedFiles
Place the script in /bin directory and Just run this script like
nohup sortDownloadedFiles &
and close the terminal. The script will keep running in the background and will keep looking on your Downloads directory.
And if you want to know how to stop the script. Check it here .
What you need to do in short is :
Place the script in /bin directory and Just run this script like
nohup sortDownloadedFiles &
and close the terminal. The script will keep running in the background and will keep looking on your Downloads directory.
And if you want to know how to stop the script. Check it here .
What you need to do in short is :
ps -aux | grep sortDownloadedFiles
killall sortDownloadedFiles inotifywait