<div dir="ltr">I can (and am) using the date command in a variable. But, the filename is not just backup-08-18-2013.zip, which isn't a problem to do. The problem is the filename is variable /outside/ the date. For example: backup-08-18-2013--1215.zip. I can VAR the date parts, but that '1215' part I need to wildcard. Does that make more sense?<div>
<br></div><div>It's really a non-issue now, I've just used find, since it expands wildcards without a lot of effort involved. </div><div><br></div><div> Thanks, guys. (NO sarcasm intended.)</div><div><br></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 19, 2013 at 3:24 PM, Joe Zeff <span dir="ltr"><<a href="mailto:joe@zeff.us" target="_blank">joe@zeff.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 08/19/2013 12:15 PM, Mark Haney wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How can I do that in a bash script. I can probably use find, but this<br>
seems much simpler and/or quicker than finding one file.<br>
</blockquote>
<br></div>
Are you looking for files with today's date, or with a specific date? In the former case, you can use the date command to put today's date into a variable and dissect it; in the latter, you can put the desired date, in the proper format, on the command line. And, if you're comfortable with perl, you might want to use it for the date manipulation.<div class="HOEnZb">
<div class="h5"><br>
-- <br>
users mailing list<br>
<a href="mailto:users@lists.fedoraproject.org" target="_blank">users@lists.fedoraproject.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/users" target="_blank">https://admin.fedoraproject.<u></u>org/mailman/listinfo/users</a><br>
Fedora Code of Conduct: <a href="http://fedoraproject.org/code-of-conduct" target="_blank">http://fedoraproject.org/code-<u></u>of-conduct</a><br>
Guidelines: <a href="http://fedoraproject.org/wiki/Mailing_list_guidelines" target="_blank">http://fedoraproject.org/wiki/<u></u>Mailing_list_guidelines</a><br>
Have a question? Ask away: <a href="http://ask.fedoraproject.org" target="_blank">http://ask.fedoraproject.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Caesar si viveret, ad remum dareris.<br><br>Mark Haney<br>Software Developer/Consultant<br><a href="mailto:mark.haney@gmail.com" target="_blank">mark.haney@gmail.com</a>
</div>