in reply to Re^3: Traverse directory backwards based on file
in thread Traverse directory backwards based on file

Hi Ken, I cannot show the input folders or filename here as its a confidential data. Let me frame you the scenario: I have Folder containing IMAGE files in TIF format. They are spread across different subfolders like 001,002,003,004,005...etc . I am giving a path till the parent folder that is IMAGE folder. Then i have a load file containg starting page and ending page numbers as BEGDOC and ENDDOC respectively. These might have a difference of 1 or 2 or 3 or any number of pages. Remember, the IMAGE folder contains files in sequence which matches the file naming convention of load file. The output should be BEGDOC,prodvolume,Imagepath,Y, Here Y reperesents the parent file that is first page. I have shown how the input loadfile looks like previously. Based on that numbers the output should contain BEGDOC in single pages along with the corresponding tif path which matches with the names.

  • Comment on Re^4: Traverse directory backwards based on file

Replies are listed 'Best First'.
Re^5: Traverse directory backwards based on file
by kcott (Archbishop) on Mar 30, 2014 at 15:39 UTC

    There's no requirement to divulge confidential information. As a trivial example, you could change this real input and output

    $ perl -E 'say "Eyes Only: $ARGV[0]"' secret_info Eyes Only: secret_info

    to this example input and output

    $ perl -E 'say "Eyes Only: $ARGV[0]"' fred Eyes Only: fred

    I've asked questions which you haven't answered and raised points which you haven't addressed. It's up to you whether you want to help us to help you. I choose not to engage in any more guesswork.

    -- Ken