view bin/testcrc @ 665:f93d4ac50080

[vimrc] Put back color for special (trailing) characters because otherwise it's invisible
author nanaya <me@nanaya.pro>
date Fri, 10 Dec 2021 21:10:20 +0900
parents 5bafb912837e
children
line wrap: on
line source

#!/usr/bin/perl

use strict;
use warnings;
use String::CRC32;

my @files = @ARGV or print("Usage u fail") && exit(1);

foreach(@files) {
	my $filename = $_;
	open(FILE,$filename);
	my $crc=crc32(*FILE);
	close(FILE);
	$crc=sprintf("%X",$crc);
	print("$filename: $crc\n");
}