<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=BSD</id>
	<title>BSD - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=BSD"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=BSD&amp;action=history"/>
	<updated>2026-05-09T09:31:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=BSD&amp;diff=1957&amp;oldid=prev</id>
		<title>Kenneth: Created page with &quot;== md5sum ==  &lt;pre&gt; #!/bin/bash  # BSD Wrapper for md5 # Kenneth Burgener &lt;kenneth@oeey.com&gt; (2013)  check=false checkfile=  while getopts &quot;c:&quot; Option do     case $Option in...&quot;</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=BSD&amp;diff=1957&amp;oldid=prev"/>
		<updated>2015-03-24T16:16:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== md5sum ==  &amp;lt;pre&amp;gt; #!/bin/bash  # BSD Wrapper for md5 # Kenneth Burgener &amp;lt;kenneth@oeey.com&amp;gt; (2013)  check=false checkfile=  while getopts &amp;quot;c:&amp;quot; Option do     case $Option in...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== md5sum ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# BSD Wrapper for md5&lt;br /&gt;
# Kenneth Burgener &amp;lt;kenneth@oeey.com&amp;gt; (2013)&lt;br /&gt;
&lt;br /&gt;
check=false&lt;br /&gt;
checkfile=&lt;br /&gt;
&lt;br /&gt;
while getopts &amp;quot;c:&amp;quot; Option&lt;br /&gt;
do&lt;br /&gt;
    case $Option in&lt;br /&gt;
        c )&lt;br /&gt;
            checkfile=$OPTARG&lt;br /&gt;
            check=true&lt;br /&gt;
            #echo &amp;quot;check file: $checkfile&amp;quot;&lt;br /&gt;
            ;;&lt;br /&gt;
        * )  echo &amp;quot;Unimplemented option chosen.&amp;quot;&lt;br /&gt;
            ;;&lt;br /&gt;
    esac&lt;br /&gt;
done&lt;br /&gt;
shift $(($OPTIND - 1))&lt;br /&gt;
&lt;br /&gt;
if $check ; then&lt;br /&gt;
    RC=0&lt;br /&gt;
    #echo &amp;quot;checking $checkfile...&amp;quot;&lt;br /&gt;
    while read line ; do&lt;br /&gt;
        csum=`echo $line | awk &amp;#039;{print $1}&amp;#039;`&lt;br /&gt;
        cfile=`echo $line | awk &amp;#039;{print $2}&amp;#039;`&lt;br /&gt;
        sum=`md5 -q $cfile`&lt;br /&gt;
        #sum=`echo $sum | awk &amp;#039;{print $1}&amp;#039;`&lt;br /&gt;
        if [ &amp;quot;$csum&amp;quot; == &amp;quot;$sum&amp;quot; ] ; then&lt;br /&gt;
            echo &amp;quot;$cfile: OK&amp;quot;&lt;br /&gt;
        else&lt;br /&gt;
            echo &amp;quot;$cfile: FAILED&amp;quot;&lt;br /&gt;
            RC=1&lt;br /&gt;
        fi&lt;br /&gt;
    done &amp;lt; $checkfile&lt;br /&gt;
    exit $RC&lt;br /&gt;
else&lt;br /&gt;
    while true ; do&lt;br /&gt;
        if [ &amp;quot;$1&amp;quot; == &amp;quot;&amp;quot; ] ; then&lt;br /&gt;
            exit&lt;br /&gt;
        fi&lt;br /&gt;
        checkfile=$1&lt;br /&gt;
        #echo &amp;quot;check: $checkfile&amp;quot;&lt;br /&gt;
        #echo &amp;quot;calcing...&amp;quot;&lt;br /&gt;
        sum=`md5 -q &amp;quot;$checkfile&amp;quot;`&lt;br /&gt;
        echo &amp;quot;$sum  $checkfile&amp;quot;&lt;br /&gt;
        shift&lt;br /&gt;
    done&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>