• 1 Post
  • 2 Comments
Joined 2 years ago
cake
Cake day: June 27th, 2023

help-circle
  • The Linux way:

    • write a script: you can use the find command to find for example rars in a folder. find ~/thatfolder -iname ‘*.rar’ -exec uncompresscommand. Read ‘man find’ for specifics. Script’s first line is #!/bin/bash. Say ‘chmod u+x script’ to make it executable.

    • set up a systemd timer unit that calls a service unit that runs your script at intervals.

    • you can use something like for file in ~/thatfolder/* ; do sed trick that extracts the file extension and puts it in a variable ; case $variable in ; bunch of cases for different extensions. Variable $file will hold the source file name. Read up on bash scripting to figure it out.

    Welcome to penguinland :D