Thank you. This is exactly what I was trying to do. In fact I was almost there. Had everything except the backticks. Now I just got to set up the cron job so it gets done everyday M-F. Thanks again.<br>Bob<br><br><div><span class="gmail_quote">
On 8/25/07, <b class="gmail_sendername">Tony E - Jaraeth</b> &lt;<a href="mailto:jaraeth@phoenixwing.com">jaraeth@phoenixwing.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
For archiving files, as an example, I usually us something like:<br><br>&nbsp;&nbsp;mv filename.tgz filename.`date +%Y%m%d`.tgz<br><br>Hope that helps,<br><br>~ Tony E<br><br><br><br>Robert Stockdale IV wrote:<br>&gt; Hi All:<br>&gt; I&#39;m a bit rusty at scripting. I&#39;ve only done a little in the past. What
<br>&gt; I am trying to do is create a file name with the date as part of the<br>&gt; name. Such as tnt082507.pdf (tnt&#39;mmddyy&#39;.pdf). I did this about 20 years<br>&gt; ago in MS-DOS. I&#39;m planning to setup a cron job to retrieve a file from
<br>&gt; the web using wget. The file always has the same name and I don&#39;t want<br>&gt; to overwrite the previous days file. I&#39;d like to save them in a dated<br>&gt; filename with a mv command in a specified directory. How can I
<br>&gt; concatenate the system date as specified to create unique filenames for<br>&gt; each days file?<br>&gt; Thank you.<br>&gt; Bob<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------
<br>&gt;<br>&gt; _______________________________________________<br>&gt; nflug mailing list<br>&gt; <a href="mailto:nflug@nflug.org">nflug@nflug.org</a><br>&gt; <a href="http://www.nflug.org/mailman/listinfo/nflug">http://www.nflug.org/mailman/listinfo/nflug
</a><br>_______________________________________________<br>nflug mailing list<br><a href="mailto:nflug@nflug.org">nflug@nflug.org</a><br><a href="http://www.nflug.org/mailman/listinfo/nflug">http://www.nflug.org/mailman/listinfo/nflug
</a><br></blockquote></div><br>