Begginer alert!!
I have just started learning perl and have got stuck. I need to initialize a hash array with values from a list. I've been told to do this using a split command, but its just not happening.
Here is the script and output:
SCRIPT:
#!/bin/perl
system("clear");
... (5 Replies)
I have a script with dynamic hash of hashes , and I want to print the entire hash (with all other hashes).
Itried to do it recursively by checking if the current key is a hash and if yes call the current function again with refference to the sub hash.
Most of the printing seems to be OK but in... (1 Reply)
Hello!
For long I used cksum to find file duplicates in linux and darwin.
Now I want to make my own program that does all.
However I can't seem to find the correct algorithm.
zip and cksum claim to use the same algorithm, but the computated sums are not the same.
I've already written an... (4 Replies)
Can Someone explain me why even using Tie::IxHash I can not get the output data in the same order that it was inserted? See code below.
#!/usr/bin/perl
use warnings;
use Tie::IxHash;
use strict;
tie (my %programs, "Tie::IxHash");
while (my $line = <DATA>) {
chomp $line;
my(... (1 Reply)
Is cksum the right command to calculate the crc32 checksum value? I tried it for a number of files now and every time the results dont match. So there is nothing wrong with the file. Also, cksum gives me an all numerical value while crc32 is alpha numeric. What am I doing wrong?
Thanks (9 Replies)
Hi Folks
I am very much a newbie at perl but picking it up and I'm hoping you can help.
I have a file input that details all the /etc/group files in our enterprise in the following format: "<host>:<group>:<gid>:<users>"
I want to parse this data display it as the following:... (9 Replies)
I have the following code that print certain files in my directory and groups things together. I would be good to tidy and simplify this code up and would greatly appreciate suggestions.
if ($opt_raytrac == 1) then
echo ""
echo -n "\033*\)/ & /g' | sort -k 4n | sed 's/ //g' \
# |... (0 Replies)
Hi,
I have an hashes of hash, where hash is dynamic, it can be n number of hash. i need to compare data_count values of all .
my %result (
$abc => {
'data_count' => '10',
'ID' => 'ABC122',
}
$def => {
'data_count' => '20',
'ID' => 'defASe',
... (1 Reply)
Hello gurus, Iam trying to parse following BibTex file (bibliography.bib):
@book{Lee2000a,
abstract = {Abstract goes here},
author = {Lee, Wenke and Stolfo, Salvatore J},
title = {{Data mining approaches for intrusion detection}},
year = {2000}
}
@article{Forrest1996,
abstract =... (0 Replies)
Discussion started by: wakatana
0 Replies
LEARN ABOUT DEBIAN
rdd-verify
VERIFIER(1) General Commands Manual VERIFIER(1)NAME
rdd-verify - verifies checksums and hash values generated by rdd-copy(1)SYNOPSIS
rdd-verify [OPTION] file1 ...
DESCRIPTION
Rdd-verify verifies checksums and hash values generated by rdd-copy(1). Rdd stores checksums (Adler32 or CRC32) in files. These files
must be passed to rdd-verify for verification.
Hash values (MD5 or SHA1) computed by rdd-copy(1) must be passed to rdd-verify on the command line as hexadecimal strings.
Rdd-verify reads all input files (file1, ...) and recomputes the checksums and hash values that the user wishes to verify. The verifica-
tion will very likely fail if the concatenation of the input files is different from the source that was copied by rdd-copy(1).
OUTPUT
All verification errors are reported on stderr.
OPTIONS
-?, --help
Print a usage message.
-V, --version
Report version number and exit.
-v, --verbose
Be verbose (more messages).
-v, --verbose
Be verbose (more messages).
--checksum, --adler32 file
Verify the Adler32 checksums stored in file.
--crc, --crc32 file
Verify the CRC32 checksums stored in file.
--md5, --md5 digest
Recompute the MD5 hash value. It should be equal to digest.
--sha, --sha1 digest
Recompute the SHA1 hash value. It should be equal to digest.
A digest argument is a hexadecimal string. Leading zeroes may not be omitted.
EXAMPLES
rdd-verify --md5 0123456789abcdef0123456789abcdef disk.img
Compute the MD5 hash value over disk.img and verify whether it equals 0123456789abcdef0123456789abcdef.
rdd-verify --adler32 checksums.a32 disk.img
Compute the adler32 checksums over disk.img and compare each checksum to the corresponding checksum in checksums.a32.
SEE ALSO rdd-copy(1)REPORTING BUGS
Report bugs to <rdd@holmes.nl>.
ACKNOWLEDGEMENTS
Many thanks to all who reported bugs and successes, and who suggested improvements. You know who you are.
COPYRIGHT
Copyright (C) 2002-2003 Netherlands Forensic Institute
This software comes with NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
rdd-verify February 2002 VERIFIER(1)