Copy typo.php
somewhere in your $PATH
and rename it to typo
(or whatever you like).
typo some_file
There are a few comment lines in the script that will show up as results.
$ typo typo.php
"usr" / "use"
1: #!/usr/bin/env php
51: $show_lines = function($l) use ($line_digits, $lines) {
"fopen" / "fupen"
28: $f = fopen($filepath, "r");
71: // fupen
"strlen" / "strln"
47: $line_digits = strlen($i);
57: if (strlen($w1) > 2 && !in_array($w2, $visited)) {
72: // strln
"STR_PAD_LEFT" / "STR_PAD_LFT"
52: echo sprintf('%s: %s', str_pad($l+1, $line_digits, " ", STR_PAD_LEFT), $lines[$l]);
73: // STR_PAD_LFT