This also serves as a reply to ninja_byte as well. Your solutions will not work, since you ignored the fact that Sam said he was on Win2k. While Win2k does have a date program, it does not function like the *ix date.

Example:

C:\perl\bwb>mkdir `date "+%d-%B-%Y"` C:\perl\bwb>dir Volume in drive C has no label. Volume Serial Number is 34D5-1CFA Directory of C:\perl\bwb 01/19/2005 09:36a <DIR> . 01/19/2005 09:36a <DIR> .. 01/19/2005 09:36a <DIR> +%d-%B-%Y` ... 01/19/2005 09:36a <DIR> `date

Now you have two new directories with stupid names. What was wrong with the strftime() solution that this is preferable?

/renz.

P.S. -

C:\perl\bwb>awk 'awk' is not recognized as an internal or external command, operable program or batch file.

Update: Cleaned up html.
Perhaps: I should rephrase third sentence of first paragraph.. Seems as if I'm blaming the entire thing on `date` when that is not exactly the truth..
# rz/020805


In reply to Re^2: Directory creation with current Date by renz
in thread Directory creation with current Date by samv74

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.