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> <<a href="mailto:jaraeth@phoenixwing.com">jaraeth@phoenixwing.com</a>> 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> 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>> Hi All:<br>> I'm a bit rusty at scripting. I've only done a little in the past. What
<br>> I am trying to do is create a file name with the date as part of the<br>> name. Such as tnt082507.pdf (tnt'mmddyy'.pdf). I did this about 20 years<br>> ago in MS-DOS. I'm planning to setup a cron job to retrieve a file from
<br>> the web using wget. The file always has the same name and I don't want<br>> to overwrite the previous days file. I'd like to save them in a dated<br>> filename with a mv command in a specified directory. How can I
<br>> concatenate the system date as specified to create unique filenames for<br>> each days file?<br>> Thank you.<br>> Bob<br>><br>><br>> ------------------------------------------------------------------------
<br>><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>_______________________________________________<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>