Usage
By default anonip reads from the standard input and writes to standard output, and this must be the easiest way to use it:
$ cat mylog.txt | anonip > mylog_anon.txt
The same behaviour can be obtained using command line arguments:
$ anonip -i mylog.txt -o mylog_anon.txt
With every run anonip uses a new seed for the random generator:
$ echo 12.34.56.78 | ./anonip 208.74.233.198 $ echo 12.34.56.78 | ./anonip 22.66.73.190 $ echo 12.34.56.78 | ./anonip 30.136.32.50
If for some reason you need to use the same transformation, you can use the -s option
$ echo 12.34.56.78 | ./anonip -s mys3cr3t 20.44.206.14 $ echo 12.34.56.78 | ./anonip -s mys3cr3t 20.44.206.14
This will also produce the same result on other machines.
If you need to process large files, and you know there will be no netmasks in IP notation (ie 255.255.224.0) , you might want to use the -m option to speed things up.
