Hi Michael<br><br>That is a good idea. However it needs to be chronologically ordered as the file numbers are sequential and need to dealt with by the other program in order. Really good idea though.<br><br>Stu<br><br><div class="gmail_quote">
2008/5/16 Michael Crilly <<a href="mailto:e-mail@mcrilly.co.uk">e-mail@mcrilly.co.uk</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Have you tried something like `time` to obtain a unique unix time<br>
stamp? Perhaps: mv file `date +%m%u && time`.001<br>
<div class="Ih2E3d"><br>
On 5/15/08, Stuart Burns <<a href="mailto:stuart.james.burns@gmail.com">stuart.james.burns@gmail.com</a>> wrote:<br>
> Hi Everyone.<br>
><br>
> I need a little help with a batch file. I have managed a bit of it, but i'm<br>
> a bit lost now.<br>
><br>
> What I need to do is<br>
><br>
><br>
</div>> 1. Looks for file RS000001.001 in folder<br>
> 2. Rename it RSmmdnnn.001 (mm=month, d= day number {Monday=1},<br>
<div class="Ih2E3d">> nnnn=unique count for the day)<br>
><br>
> Now this file can appear up to several times a day (ie its going to run as a<br>
> cron job every half hour to pick up the files as they are dumped by ftp) I<br>
> can do the basic stuff with the date ie DATE = `date +%m%u` but setting up<br>
> the nnnn bit is where I am getting lost.<br>
><br>
> Any help appreciated.<br>
><br>
> Stu<br>
><br>
<br>
</div>--<br>
Sent from Google Mail for mobile | <a href="http://mobile.google.com" target="_blank">mobile.google.com</a><br>
<br>
M. T. Crilly<br>
<a href="http://www.mcrilly.co.uk/" target="_blank">http://www.mcrilly.co.uk/</a><br>
<br>
_______________________________________________<br>
Chester mailing list<br>
<a href="mailto:Chester@mailman.lug.org.uk">Chester@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/chester" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/chester</a><br>
</blockquote></div><br>