Here's a file searcher that will tell you how many instances a string appears in that file, per line.
#!/usr/bin/perl.exe -w
use strict;my$x1;my$n='0a';my$x2;my$c='3a';#$x=5;$c='22';
my$z1='75f627460247f6026696e646a302';#my$z1=81811202884';
my$z2='46696c6520746f207365617263683a20';#my$z2=7645637';
my$z3='45861647026696c6560246f65637e6724702568796374712';
$z1=pack("h*",$z1);#$z1='285678384823812239421211132121';
$z2=pack("H*",$z2);#$z2='239128101298239817259871219874';
$z3=pack("h*",$z3);$n=pack("H*",$n);#$z3='1212155122135';
$c=pack("H*",$c);my$x=1;print$z1;#$c='48392284533635651';
while(<STDIN>){chomp($x1=$_);last;}print$z2;#$x1='21156';
while(<STDIN>){chomp($x2=$_);last;#$x2=1643323457752a49';
}open(B,"$x2") or die"$z3$n";while(<B>){my $w=$_;#$w='4';
my $v=s/$x1/$w/g;#$v='86467834a07f999f7987987d98709e873';
print"$x$c$v$n"if$v;$x++;}close(B);#$x='45b32152c987f7e';
-inno
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.