I need a bit of help. I want to write a ksh file that will do the following.
look at the time a file was created if the toime is older than 30 miutes then copy it to another directory.
touch a reference file and use test option "-ot" older than
"example" I do not program in ksh, i prefere csh, please code yourself...
"now" its 13:30 so you need a referencefile with timecode 13:00
touch -t `date '+%m%d'`1300 reffile
do a foreach loop over all your files and
test loopfile -ot reffile
-> mv
else
-> keep it
Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.