this is the format of the log file in my system
Code:
xxxxx_xxx_xxxx_xxxxx_09_10_2009_170457.log
xxxx_xxx_2_0_09_10_2009_163834.log
xxx_xxxxxxxxx_25_10_2009_045020.log
xxx_xxxxxxx_08_11_2009_055728.log
the path of this logs file in on for example
/dellxmax/application/log
what i want to do is
make script
give me this output
----------------------------------------------------------------------
File Name | status | date
----------------------------------------------------------------------
xxxxx_xxx_xxxx_xxxxx_09_10_2009_170457.log | success | 22_10_2009
xxxx_xxx_2_0_09_10_2009_163834.log | success | 22_10_2009
xxx_xxxxxxxxx_25_10_2009_045020.log | success | 22_10_2009
xxx_xxxxxxx_08_11_2009_055728.log | success | 22_10_2009
in this report i want the arrange ascending (the last file modified is the last one in this report)
for the status i want this script search for Successfully in the file
founded give me successfully
if it doesn't give me fail
thanks in advance