Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to find latest created folder in dir
    primarykey
    data
    text
    <p>Can anybody give me some help for figuring out the problem below.</p> <p>Here are some facts:</p> <ul> <li><p>I am using Windows XP. </p></li> <li><p>We have the directory <code>/abc5/def/ghi/dcl_201107_hy79u_02</code>. In which the inner sub-directory name (the <code>dcl_201207_hy79u_02</code> part) changes every week using the following rule:</p> <pre><code>dcl_&lt;year&gt;&lt;week&gt;_hy79u_&lt;some_number&gt; </code></pre> <p>e.g. <code>dcl_201208_hy79u_05</code> for the 8th week and <code>dcl_201209_hy79u_06</code> for the 9th week.</p> <p>As far as we are concerned, the <code>&lt;some_number&gt;</code> part (ie 02, 05 or 06) is some random number. </p></li> <li><p>Under this directory there will be 60 files and those file names would be like:</p> <p><code>dcl_201207_hy79u_02_epoc32_include_internal.zip</code></p></li> </ul> <p>Now what I am trying to implement is this: </p> <p>Every week a new dir is created on FTP server and we have to copy some 64 files out of 100 files. How I am proceeding is to copy all the 64 files names in a text file and reading each line and pulling the file I want. The problem is that I am not able to find the latest created folder and also I am not able to modify those files name according to the week. I tried to use template as suggested by this community but I failed as beging very new to Perl :( </p> <p>So I am trying to replace the string <code>dcl_201207_hy79u_02</code> in every file wherever I get it.</p> <p>e.g. for the 8th week dir name would be <code>dcl_201208_hy79u_05</code> then replace this string in every file. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload