<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Perl-scripting HELP in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/perl-scripting-help/m-p/3430701#M102710</link>
    <description>Please a little help!&lt;BR /&gt;I'm trying to create hash named %ARR the result of command OS-command "cksum" in Perl script.&lt;BR /&gt;&lt;BR /&gt;Something like: &lt;BR /&gt;&lt;BR /&gt;%ARR=system( "cksum * | awk '{print \$1}" );&lt;BR /&gt;&lt;BR /&gt;the (keys %ARR) must be = cksum's of files into current dir&lt;BR /&gt;&lt;BR /&gt;the (values %ARR) must be = filename's of files into current dir.&lt;BR /&gt;&lt;BR /&gt;Any examples? :) &lt;BR /&gt; &lt;BR /&gt;</description>
    <pubDate>Thu, 25 Nov 2004 13:24:43 GMT</pubDate>
    <dc:creator>Stanimir</dc:creator>
    <dc:date>2004-11-25T13:24:43Z</dc:date>
    <item>
      <title>Perl-scripting HELP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-scripting-help/m-p/3430701#M102710</link>
      <description>Please a little help!&lt;BR /&gt;I'm trying to create hash named %ARR the result of command OS-command "cksum" in Perl script.&lt;BR /&gt;&lt;BR /&gt;Something like: &lt;BR /&gt;&lt;BR /&gt;%ARR=system( "cksum * | awk '{print \$1}" );&lt;BR /&gt;&lt;BR /&gt;the (keys %ARR) must be = cksum's of files into current dir&lt;BR /&gt;&lt;BR /&gt;the (values %ARR) must be = filename's of files into current dir.&lt;BR /&gt;&lt;BR /&gt;Any examples? :) &lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Thu, 25 Nov 2004 13:24:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-scripting-help/m-p/3430701#M102710</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2004-11-25T13:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Perl-scripting HELP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-scripting-help/m-p/3430702#M102711</link>
      <description># man Digest::MD5&lt;BR /&gt;&lt;BR /&gt;use Digest::MD5 qw( md5_hex );&lt;BR /&gt;use File::Find;&lt;BR /&gt;my %arr;&lt;BR /&gt;find (sub {&lt;BR /&gt;    -f or return;&lt;BR /&gt;    local $/;&lt;BR /&gt;    open my $p, "&amp;lt; $_" or die "$_: $!\n";&lt;BR /&gt;    my $sum = md5_hex (&amp;lt;$p&amp;gt;);&lt;BR /&gt;    $arr{$sum} = $_;&lt;BR /&gt;    }, ".");&lt;BR /&gt;&lt;BR /&gt;This will NOT check if there are more than one files with the same MD5&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Thu, 25 Nov 2004 13:33:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-scripting-help/m-p/3430702#M102711</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-11-25T13:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Perl-scripting HELP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-scripting-help/m-p/3430703#M102712</link>
      <description>for extra uniqueness, change that to&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;use Digest::MD5 qw( md5_hex );&lt;BR /&gt;use Digest::SHA1 qw( sha1_hex );&lt;BR /&gt;use File::Find;&lt;BR /&gt;my %arr;&lt;BR /&gt;find (sub {&lt;BR /&gt;-f or return;&lt;BR /&gt;local $/;&lt;BR /&gt;open my $p, "&amp;lt; $_" or die "$_: $!\n";&lt;BR /&gt;my $f = &amp;lt;$p&amp;gt;;&lt;BR /&gt;my $sum = md5_hex ($f) . sha1_hex ($f);&lt;BR /&gt;$arr{$sum} = $_;&lt;BR /&gt;}, ".");&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Thu, 25 Nov 2004 14:06:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-scripting-help/m-p/3430703#M102712</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-11-25T14:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Perl-scripting HELP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-scripting-help/m-p/3430704#M102713</link>
      <description>&lt;BR /&gt; Thanx, it works !!!</description>
      <pubDate>Fri, 26 Nov 2004 10:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-scripting-help/m-p/3430704#M102713</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2004-11-26T10:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Perl-scripting HELP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-scripting-help/m-p/3430705#M102714</link>
      <description>Thanks guys.. saved me some work.. I appreciate it!</description>
      <pubDate>Thu, 10 Nov 2005 17:45:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-scripting-help/m-p/3430705#M102714</guid>
      <dc:creator>Jeff Smith</dc:creator>
      <dc:date>2005-11-10T17:45:49Z</dc:date>
    </item>
  </channel>
</rss>

