I need to write a simple linux script that will unzip a file that is dropped on the same box every day. I'm assuming by create date is the easiest way to do it but don't know how. And advice would be much apprecaited.
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
3 replies Latest Post - 2007-03-28T17:07:09Z by orphy
Pinned topic Simple Linux Scripting
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2007-03-28T17:07:09Z at 2007-03-28T17:07:09Z by orphy
orphy 100000E3SF2 PostsACCEPTED ANSWER
Re: Simple Linux Scripting2007-03-28T16:27:45Z in response to SystemAdminGary,
You can try something like this but it assumes a few things.
$ ls -1tr <file>*|tail -1
If this doesn't fit your need, man ls and search for "time".
The man page should have everything you need.