Automation using Bash and Python script
- FolderOrganizer : Automatically organized
~/Downloads
folder in Ubuntu OS
- Clone the repo :
git clone https://github.com/mirsahib/Project-BashOmatic.git
- Goto the repo :
cd Project-BashOmatic/Bash
- Install rename command
sudo apt install rename
- Change file mode
chmod +x fileOrganizer
- Run the script
./fileOrganizer <your username>
Optional Cron job
- From terminal run
crontab -e
- Add below code
# m h d mon week command
0 12 * * 1 /home/username/Scripts/folderOrganizer.sh <your username>
this means run the above script on every monday 12 pm
- (Option) If you want to send feedback message to your gmail account add this code above step 4
MAILFROM=username@gmail.com
MAILTO=username@gmail.com
NB: You need to have ssmtp configure to send feedback to your gmail.