Compressing files script for Linux

External tools, software and sites for creating or editing UT99 resources.
User avatar
Barbie
Godlike
Posts: 2425
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Compressing files script for Linux

Post by Barbie » Sat Dec 28, 2019 12:12 am

Just saw that UZ Creation Organizer [batch tool] and thought it would be nice to publish my bash script for Linux.
  • Compares the date of all files from the directories PATTERNS[] (except the files given in EXCLUDEFILES) and compresses the file if it is newer than the already existing compressed one. If no compressed version exists, it is created. All compressed files go to directory REDIRECTDIR.
  • Issues a warning if compressed file is bigger than the uncompressed.
  • Issues a warning if a compressed file exits but no uncompressed version of it (=compressed file is not needed anymore)
You do not have the required permissions to view the files attached to this post.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett