Scripting
>>
Perl
>>
How to extract IP addresses from a text file
example: open(inhandle,"ncbi.txt"); while(
) { chomp; if ( m/ (\d+[.]\d+[.]\d+[.]\d+) /gi ) { $client{} = ; } } close(inhandle); foreach $ip (sort keys %client) { print "$ip\n"; }
Please enable JavaScript to view the
comments powered by Disqus.