Skip to content

mirsahib/Project-BashOmatic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BashOmatic

Overview

Automation using Bash and Python script

Project

  • FolderOrganizer : Automatically organized ~/Downloads folder in Ubuntu OS

How to run FolderOrganizer

  1. Clone the repo : git clone https://github.com/mirsahib/Project-BashOmatic.git
  2. Goto the repo : cd Project-BashOmatic/Bash
  3. Install rename command sudo apt install rename
  4. Change file mode chmod +x fileOrganizer
  5. Run the script ./fileOrganizer <your username>

Optional Cron job

  1. From terminal run
crontab -e
  1. 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

  1. (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.

Follow this, this,this link to install and configure ssmtp

About

Bash automation script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages