I have this situation
/u03/app/banjobs> ls -ltr icg*
82 Jun 12 10:37 iicgorldi_2419186.log
56810484 Jun 17 10:35 icgorldi_2421592.xml
2859 Jun 17 10:35 icgorldi_2421592.lis
- 125 Jun 17 10:35 icgorldi_2421592.log
82 Jun 12 10:37 iicgorldi_2419187.log
56810484 Jun 17 10:35 icgorldi_2421597.xml
2859 Jun 17 10:35 icgorldi_2421597.lis
1 banjobs jobsub 125 Jun 17 10:35 icgorldi_2421597.log
2421597.xml
I need to grab the last XML file created
rename and move to a directory the number (2421597) change every time the process run, I need to write a shl script to do that...The process that generates the file is schedule to run 3 times a day, so three different files are created
with a different number like:
icgorldi_2421597.xml
icgorldi_2421598.xml
icgorldi_2421599.xml
The number is a sequence but it its share by other processes, so this file is not necessary in a sequence 97..9..99 the number is random..
Thank you
Thank you