Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: File Search And Compare

by PyroX (Pilgrim)
on Feb 18, 2002 at 21:42 UTC ( [id://146258]=note: print w/replies, xml ) Need Help??


in reply to File Search And Compare


One Item I have changed, which worked a tiny bit better, but is still too craptastic to ever be used:

#!/usr/bin/perl system("clear"); open(FILE,"/var/log/everything"); my $i=0; while($input=<FILE>){ if($input=~/fwa/i){ $i++; @parsed[$i]=$input; } } print "\n $i entities"; foreach my $test (@parsed){ my $data=""; my $x=""; my $t=""; foreach my $final (@parsed){ if($final eq $test){ $x++; my $data='valid_time'; } $t++; } if($x>1){ print "$x $test"; } }

I changed the output control, everything was returning because everything existed at least once (itself).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://146258]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found