|
2 weeks ago | |
---|---|---|
LICENSE | 2 weeks ago | |
README.md | 2 weeks ago | |
clean-docs.service | 2 weeks ago | |
clean.sh | 2 weeks ago |
A bash script I use to watch for certain file extensions and move them from the Downloads directory to the appropriate home directory (Documents/Pictures/Videos).
inotify-tools
sudo apt install inotify-tools
rsync
to move files and delete the source afterclean.sh
. Copy it wherever you'd like to keep the script.clean-docs.service
, is also available. This must be copied to /etc/systemd/system/clean-docs.service
. Configure the service environment variables to move different file extensions to different directories (source
, destination
, look_for
).
.service
file.systemctl daemon-reload
systemctl enable clean-docs
systemctl start clean-docs
.journalctl -u clean-docs --follow