I am working on an archival script
the directory structure is something like this:
/sqk/abc/bcd/dir_1/ef/gh/hw/(*.txt,*.dat etc)
/sqk/abc/bcd/dir_2/ef/gh/hw/(*.txt,*.dat etc)
/sqk/abc/bcd/dir_3/ef/gh/hw/(*.txt,*.dat etc)
/sqk/abc/bcd/dir_4/ef/gh/hw.(*.txt,*.dat etc)
:
:
/sqk/abc/bcd/dir_21/ef/gh/hw/(*.txt,*.dat etc)
/sqk/abc/bcd/dir_22/ef/gh/hw.(*.txt,*.dat etc)
this script is run every day once the directory structure is same except the "dir_ "part and it archives all the files in the end of that line
i need to do two things:
make the script look like /sqk/abc/bcd/ef/gh/hw/(*.txt,*.dat etc) ( so maybe a soft link that increments every time ) so bcd in actual is bcd/dir_1 for the first day ,bcd/dir_2 for the second day...until bcd/22 for the 22nd day. Then it is re set to bcd/dir_1
Any ideas would be highly appreciated !!!