13 if ($argc < 2 || empty($argv[1])) {
14 print
"please specify the file you want to parse.\n";
19 $scanning_file = $argv[1];
20 $lines = file($scanning_file);
21 $count1 = count($lines);
22 $lines = array_unique($lines);
23 $count2 = count($lines);
24 file_put_contents($scanning_file, implode(
'', $lines));