Dolda2000 GitWeb
/
utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added CPU loading utility.
[utils.git]
/
tel2name
diff --git
a/tel2name
b/tel2name
index
f9744bc
..
1623d7c
100755
(executable)
--- a/
tel2name
+++ b/
tel2name
@@
-90,21
+90,21
@@
if($wppid == 0) {
binmode(YP, ":utf8");
binmode(WP, ":utf8");
binmode(YP, ":utf8");
binmode(WP, ":utf8");
-match: while(<
Y
P>) {
+match: while(<
W
P>) {
chomp;
for $prev (@matches) {
chomp;
for $prev (@matches) {
- next match if
$prev eq $_
;
+ next match if
(lc $prev) eq (lc $_)
;
}
}
+ print "$_\n";
+ flush;
push @matches, $_;
}
push @matches, $_;
}
-match: while(<
W
P>) {
+match: while(<
Y
P>) {
chomp;
for $prev (@matches) {
chomp;
for $prev (@matches) {
- next match if
$prev eq $_
;
+ next match if
(lc $prev) eq (lc $_)
;
}
}
+ print "$_\n";
+ flush;
push @matches, $_;
}
push @matches, $_;
}
-
-for $match (@matches) {
- print "$match\n";
-}