I need to setup some kind of script to go through a set of folders, compressing each one, and only leaving the compressed copy of each. How can I do that?
This script takes a list of folders as arguments. Save it as e.g.
You have to make the script executable before this:
Here comes the script:
Tell me if this is not what you need. If you are not sure what it's doing make a backup of your data before you test it ;-)