|Ru Singh 00ba7af9b4||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).
sudo apt install inotify-tools
rsyncto move files and delete the source after
clean.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 (
systemctl enable clean-docs
systemctl start clean-docs.
journalctl -u clean-docs --follow