in reply to Re^3: mv files from dir1 to dir2
in thread mv files from dir1 to dir2

Thanks for the help with getting the "glob".
Duh! on my part. Now that I can see the dirs that I want to
search. I need to look into the subdir to see if I want to move it to testdir2.
So the first file in each dir that I want to mv to testdir2 will be similar
to:
12635L1_LacZ.SEE.rc_G03_2008-12-01.ab1
12635L1_pgK.Neo.2fw_H03_2008-12-01.ab1
12635L1_SD_F03_2008-12-01.ab1
12635L1_SU_E03_2008-12-01.ab1 The dir could start with anyone of them based on the regex. This is a unique file naming convention.
Now that I have the $topdir should I do another foreach to read through the dirs?

Replies are listed 'Best First'.
Re^5: mv files from dir1 to dir2
by zentara (Cardinal) on Jan 12, 2009 at 19:16 UTC
    We showed you enough tricks, so that you should be able to work it out by hacking on your own. Just add alot of print statements to debug what are your dirs, files and pathnames, and you will eventually get it they way you want. Just pay attention to detail.

    I'm not really a human, but I play one on earth Remember How Lucky You Are
      Cool!