Page 1 of 1

Compressing files script for Linux

Posted: Sat Dec 28, 2019 12:12 am
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)