I am creating a script that moves all 'logA' files in a certain folder and adds timestamp every 3 hours, afterwards it will be zipped.
This is the base of the script:
mv *logA+timestamp /backupDIR
--then the GZIP part--
Since it will run every 3 hours, there will be a time there are already .gzip files in the /backupDIR. Sample:
How can I exclude the already zipped file in the script? Should I do loop that will check if there are still .logA+timestamp?