I am working on a build system. The build system publishes the results as a zip file in a directory. Unfortunately, I have no easy way to find out the name of a zip file, because it has a timestamp. For the next operation, I have to unzip this zip file to some specific place, and then do some more file operations.
I assume that I can change the build system, so I specify the name of the zip file of the result from the command line, however, although it may be easiest for me to find out which one is the newest file, and unzip it (if the previous process is successful).
How can I execute the unzip command, which will act only on the newest zip file in the directory, ignoring all the others?
EDIT: Instead, I decided to use the ANT features for this task. However, it is still a neat trick to have a true one ... Thanks for the answer!
source
share