File: findUnicode.pl

package info (click to toggle)
treeview 1.2.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,340 kB
  • sloc: java: 33,290; xml: 1,728; sh: 391; perl: 132; makefile: 11
file content (8 lines) | stat: -rwxr-xr-x 181 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
#!/usr/bin/perl
my $val = pack("H*",shift(@ARGV));
my $dec = unpack("c*", $val);
my $char = pack("u*", $dec);
print "searching for $char\n";
while(<>) {
    print $_ if (/$val/);
}