I am starting a new topic cause the people in the old one do not understand what I am asking ( trying to learn / figure out ) how to do
I have 24 files in a directory
they are named
12am.txt
1am.txt
2am.txt
ETC ETC
till
11am.txt
then they change to PM
12pm.txc
1pm.txt
2pm.txt
till
11pm.txt
Theses files are already created and in one folder what I want to do is move them from that folder to another folder that already has other files in it as well and overwrite the ones name 11am, etc etc etc
I just need to know how to make a counter that will be assigned to a variable EX $counter so that I can add the copy command to it and move the files to another directory
Thanks for all your help
Basically I want to move those files from directory A to directory B if at all possible in the order of 12am-11am and then 12pm to 11pm
Anyone ?