Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7516577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:10:32+00:00 2026-05-30T01:10:32+00:00

Can anybody give me some help for figuring out the problem below. Here are

  • 0

Can anybody give me some help for figuring out the problem below.

Here are some facts:

  • I am using Windows XP.

  • We have the directory /abc5/def/ghi/dcl_201107_hy79u_02. In which the inner sub-directory name (the dcl_201207_hy79u_02 part) changes every week using the following rule:

    dcl_<year><week>_hy79u_<some_number>
    

    e.g. dcl_201208_hy79u_05 for the 8th week and dcl_201209_hy79u_06 for the 9th week.

    As far as we are concerned, the <some_number> part (ie 02, 05 or 06) is some random number.

  • Under this directory there will be 60 files and those file names would be like:

    dcl_201207_hy79u_02_epoc32_include_internal.zip

Now what I am trying to implement is this:

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 🙁

So I am trying to replace the string dcl_201207_hy79u_02 in every file wherever I get it.

e.g. for the 8th week dir name would be dcl_201208_hy79u_05 then replace this string in every file.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T01:10:34+00:00Added an answer on May 30, 2026 at 1:10 am

    If you have the week number in $w, the function sprintf("week%02dsuffix", $w) returns week01suffix when $w is 1, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anybody give me some sample source code showing how to connect to a
Can anybody give me some clue that how to convert binary string into a
Can anybody give me an example how to implement AttachedCommands? There are some examples
Some beginner help needed if anybody can.. I'm writing a contact form with a
Can anybody give me some links or explain me how to build an XLL
Can anybody give a clear explanation of how variable assignment really works in Makefiles.
Can anybody give me an example how to use the osgi framework classes? I
Can anybody give a link for a simple explanation on BFS and DFS with
Can anybody give an example of c++ code that can easily convert a decimal
What is the difference between composition and aggregation? can anybody give me a sample

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.