Hello, I have a problem, see if I can help or guide ....
In a directory I have several files with different names, but these names follow a pattern of the type:
XX_NOMBRE FICHERO_AAAA-MM-DD.trc for example; 02_AccesoBD_2013-02-12.trc (YYYY is the year, MM is the month, DD is the day and XX is a value increases) the fact is that I need the last file which exists with this pattern, that is, there may be three files 01_AccesoBD_2013-02-12.trc, 02_AccesoBD_2013-02-12.trc, 03_AccesoBD_2013-02-12.trc and I need the Ăștlimo of them would be the 03_AccesoBD_2013-02 -12.trc then look for a pattern to that file, but as I can locate the file Ăștlimo follow that pattern in the name?
It could be with the "Regular Expressions"? ;-(
Thank you so much for pointing
In a directory I have several files with different names, but these names follow a pattern of the type:
XX_NOMBRE FICHERO_AAAA-MM-DD.trc for example; 02_AccesoBD_2013-02-12.trc (YYYY is the year, MM is the month, DD is the day and XX is a value increases) the fact is that I need the last file which exists with this pattern, that is, there may be three files 01_AccesoBD_2013-02-12.trc, 02_AccesoBD_2013-02-12.trc, 03_AccesoBD_2013-02-12.trc and I need the Ăștlimo of them would be the 03_AccesoBD_2013-02 -12.trc then look for a pattern to that file, but as I can locate the file Ăștlimo follow that pattern in the name?
It could be with the "Regular Expressions"? ;-(
Thank you so much for pointing