Skip to content

Tool for automating bash cleanup tasks with cron jobs 🧹✨

Notifications You must be signed in to change notification settings

ANG13T/bashsweep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

https://github.com/ANG13T/digital_cleaning_shell/blob/main/icon.png?raw=true

Bash Sweep

Tool for automating bash cleanup tasks with cron jobs

Scripts

  • Remove Empty Directories
  • Remove Files Older than X Days
  • Organize Files by Extension
  • Remove Temporary Files
  • Search Files for Keyword

Usage

chmod +x bashsweep.sh
./bashsweep

Cron Jobs

Once you select the clean up function for bashsweep, you will be prompted with a crontab request.

A crontab (aka "cron table") is a configuration file used in Unix-based operating systems to schedule and automate repetitive tasks. You can view the cron table by using the command crontab -l

Cron jobs are independent background tasks within the cron table set to run at specific times or intervals.

Cron Job Structure

* * * * * command_to_be_executed
- - - - -
| | | | |
| | | | +---- Day of the week (0 - 6) (0 = Sunday, 1 = Monday, ..., 6 = Saturday)
| | | +------ Month (1 - 12)
| | +-------- Day of the month (1 - 31)
| +---------- Hour (0 - 23)
+------------ Minute (0 - 59)

Example Cron Schedule for Everyday at 1:30PM

30 13 * * * /path/to/your/script.sh

Contributing

bashsweep is open to any contributions. Please fork the repository and make a pull request with the features or fixes you want to implement.

Support

If you enjoyed bashsweep, please consider becoming a sponsor or donating on buymeacoffee in order to fund my future projects.

To check out my other works, visit my GitHub profile.

About

Tool for automating bash cleanup tasks with cron jobs 🧹✨

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages