diff options
| author | fukachan <fukachan> | 2001-04-10 10:46:30 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-04-10 10:46:30 +0000 |
| commit | 4c6f953b2e96fb9f47a094c76b52c54838a662bf (patch) | |
| tree | 23460ca55cea564daa4050fb6cb7a8bd9e627f0a | |
| parent | e62750548de8d3a6a322e64bd32486824daae06d (diff) | |
| download | fml8-4c6f953b2e96fb9f47a094c76b52c54838a662bf.tar.gz fml8-4c6f953b2e96fb9f47a094c76b52c54838a662bf.tar.bz2 fml8-4c6f953b2e96fb9f47a094c76b52c54838a662bf.zip | |
ip address scrambler
| -rwxr-xr-x | regress/testmails/.fix_addr.pl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/regress/testmails/.fix_addr.pl b/regress/testmails/.fix_addr.pl new file mode 100755 index 00000000..4b5dc8ac --- /dev/null +++ b/regress/testmails/.fix_addr.pl @@ -0,0 +1,23 @@ +#!/usr/local/bin/perl +#-*- perl -*- +# +# Copyright (C) 2001 Ken'ichi Fukamachi +# All rights reserved. This program is free software; you can +# redistribute it and/or modify it under the same terms as Perl itself. +# +# $FML: __template.pm,v 1.5 2001/04/03 09:45:39 fukachan Exp $ +# + +use strict; +use Carp; + +my $base_addr = '10.20.30.'; +my $i = 1; + +while (<>) { + my $addr = $base_addr . $i++; + s/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/$addr/e; + print; +} + +exit 0; |
