Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Admin Scripts

Admin Scripts

Scheduled Pinned Locked Moved The Weird and The Wonderful
question
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bulg
    wrote on last edited by
    #1

    Hey all, here's an interlude to the regularly scheduled 'weird, wide world of windows' :)

    my $olddatemails = `ls -t Mailed20??????`;
    my $datemailed = "";
    $datemailed = $1 if ($olddatemails =~ /(20\d\d\d\d\d\d)/s);
    die if ($datemailed eq "");
    ...

    $newdate = $datemailed;
    while ($parse =~ s/Mailed(20\d\d)(\d\d)(\d\d).*?\n//s)
    {
    $newdate = $1 . $2 . $3;
    }

    `mv "Mailed$datemailed" "Mailed$newdate"` if ($datemailed lt $newdate);

    How many tautologies and inconsistencies can you count??? :wtf:

    A G K 3 Replies Last reply
    0
    • B bulg

      Hey all, here's an interlude to the regularly scheduled 'weird, wide world of windows' :)

      my $olddatemails = `ls -t Mailed20??????`;
      my $datemailed = "";
      $datemailed = $1 if ($olddatemails =~ /(20\d\d\d\d\d\d)/s);
      die if ($datemailed eq "");
      ...

      $newdate = $datemailed;
      while ($parse =~ s/Mailed(20\d\d)(\d\d)(\d\d).*?\n//s)
      {
      $newdate = $1 . $2 . $3;
      }

      `mv "Mailed$datemailed" "Mailed$newdate"` if ($datemailed lt $newdate);

      How many tautologies and inconsistencies can you count??? :wtf:

      A Offline
      A Offline
      AspDotNetDev
      wrote on last edited by
      #2

      First of all, what programming language is that?

      Thou mewling ill-breeding pignut!

      B 1 Reply Last reply
      0
      • A AspDotNetDev

        First of all, what programming language is that?

        Thou mewling ill-breeding pignut!

        B Offline
        B Offline
        bulg
        wrote on last edited by
        #3

        Really? That's almost as depressing as the fact that the jackass who authored this atrocity is in effect my superior.. (also, Perl)

        A 1 Reply Last reply
        0
        • B bulg

          Really? That's almost as depressing as the fact that the jackass who authored this atrocity is in effect my superior.. (also, Perl)

          A Offline
          A Offline
          AspDotNetDev
          wrote on last edited by
          #4

          bulg wrote:

          the jackass who authored this atrocity is in effect my superior

          Your superior or your supervisor? :rolleyes:

          bulg wrote:

          Perl

          Remind me to never use Perl. X|

          Thou mewling ill-breeding pignut!

          B 1 Reply Last reply
          0
          • A AspDotNetDev

            bulg wrote:

            the jackass who authored this atrocity is in effect my superior

            Your superior or your supervisor? :rolleyes:

            bulg wrote:

            Perl

            Remind me to never use Perl. X|

            Thou mewling ill-breeding pignut!

            B Offline
            B Offline
            bulg
            wrote on last edited by
            #5

            He's "in" with the owners, but not technically my boss.

            AspDotNetDev wrote:

            Remind me to never use Perl. X|

            So true!

            1 Reply Last reply
            0
            • B bulg

              Hey all, here's an interlude to the regularly scheduled 'weird, wide world of windows' :)

              my $olddatemails = `ls -t Mailed20??????`;
              my $datemailed = "";
              $datemailed = $1 if ($olddatemails =~ /(20\d\d\d\d\d\d)/s);
              die if ($datemailed eq "");
              ...

              $newdate = $datemailed;
              while ($parse =~ s/Mailed(20\d\d)(\d\d)(\d\d).*?\n//s)
              {
              $newdate = $1 . $2 . $3;
              }

              `mv "Mailed$datemailed" "Mailed$newdate"` if ($datemailed lt $newdate);

              How many tautologies and inconsistencies can you count??? :wtf:

              G Offline
              G Offline
              Gary Huck
              wrote on last edited by
              #6

              I used to use perl a lot ... I think I just threw up a little in my mouth.

              1 Reply Last reply
              0
              • B bulg

                Hey all, here's an interlude to the regularly scheduled 'weird, wide world of windows' :)

                my $olddatemails = `ls -t Mailed20??????`;
                my $datemailed = "";
                $datemailed = $1 if ($olddatemails =~ /(20\d\d\d\d\d\d)/s);
                die if ($datemailed eq "");
                ...

                $newdate = $datemailed;
                while ($parse =~ s/Mailed(20\d\d)(\d\d)(\d\d).*?\n//s)
                {
                $newdate = $1 . $2 . $3;
                }

                `mv "Mailed$datemailed" "Mailed$newdate"` if ($datemailed lt $newdate);

                How many tautologies and inconsistencies can you count??? :wtf:

                K Offline
                K Offline
                KbrKnight
                wrote on last edited by
                #7

                Is this for real?? I hope I have not become rusty on my Perl skills, as I am unable to comprehend how this ever works out

                --> Getting information off the Internet is like taking a drink from a fire hydrant. --> In three words I can sum up everything I've learned about life: it goes on.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups