summaryrefslogtreecommitdiff
path: root/portal/tools/pwn/2planet.pl
blob: 15fa362406285c0336b485d8a66999d43cc563af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl
use strict;
use warnings;

chomp(my $file = $ARGV[0] || `date +'%Y%m%d.pwn'`);

open my $fh, '<', $file
    or die "Can't open $file for reading: $!";
while (<$fh>) {
    s{(^|\s)([A-Z]\S*[a-z]+[A-Z])}{$1!$2}g;
    s{== (.*) ==}{**$1**}g;
    print;
}