Compressing files script for Linux

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

Compressing files script for Linux

Post by Barbie »

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)
Attachments
CompressMissingFiles.sh.7z
(1.69 KiB) Downloaded 50 times
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Post Reply