-1
0
I need to copy multiple, sequential files into sequential directories. The files have the julian date (day of year) with other info in the file name. The directories are listed by julian date (day of year). I need each file to correspond with the julian date.
To clarify....
I have 365 files labeled "test_001.txt" through "test_365.txt" in "/home/aaa". Each file needs to be moved into it's own directory in "/data" labeled "001" through "365".
Hope this clears it up. Thanks!
Example data please – roaima – 2015-02-20T18:44:33.747
Are the source files and directories in the same place or in different parts of the filesystem? – roaima – 2015-02-20T18:45:40.580
They are in different parts, but on the same server. – gbh – 2015-02-20T18:46:38.410
@gbh Please edit your most and make it more clearer with some clear example. – kenorb – 2015-02-20T18:54:00.227