blob: 60f572b49055def0804556dad7fe6d8e5e00a9ee (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/usr/bin/perl -w
while ( <> ) {
print;
@V = split(/:/);
$_ = $V[3];
if ( $V[0] !~ /^\#/ && !(/^[0-9A-F]{32}$/ || /^X{32}$/ || /^\*{32}$/) ) {
$V[3] = "X" x 32;
}
print( join( ':', @V));
}
|