<?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 translate script with command od in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/translate-script-with-command-od/m-p/3736971#M101155</link>
    <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I would like to use this function on HPUX, but od -D doesn't work on HP-UX.&lt;BR /&gt;Could oyu help me ?&lt;BR /&gt;&lt;BR /&gt;Here the function :&lt;BR /&gt;&lt;BR /&gt;GetLong()&lt;BR /&gt;{&lt;BR /&gt;# Returns 4-byte unsigned integer.&lt;BR /&gt;#&lt;BR /&gt;# Parameters:&lt;BR /&gt;#  $1 - offset in the file;&lt;BR /&gt;#  $2 - file to read.&lt;BR /&gt;&lt;BR /&gt;# od -D  Interpret long words in unsigned decimal:&lt;BR /&gt;  od -D $2 +$1. | \&lt;BR /&gt;  awk '{ printf"%d",$2; exit }'&lt;BR /&gt;&lt;BR /&gt;} # GetShort()</description>
    <pubDate>Wed, 22 Feb 2006 08:46:48 GMT</pubDate>
    <dc:creator>cariteyp</dc:creator>
    <dc:date>2006-02-22T08:46:48Z</dc:date>
    <item>
      <title>translate script with command od</title>
      <link>https://community.hpe.com/t5/operating-system-linux/translate-script-with-command-od/m-p/3736971#M101155</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I would like to use this function on HPUX, but od -D doesn't work on HP-UX.&lt;BR /&gt;Could oyu help me ?&lt;BR /&gt;&lt;BR /&gt;Here the function :&lt;BR /&gt;&lt;BR /&gt;GetLong()&lt;BR /&gt;{&lt;BR /&gt;# Returns 4-byte unsigned integer.&lt;BR /&gt;#&lt;BR /&gt;# Parameters:&lt;BR /&gt;#  $1 - offset in the file;&lt;BR /&gt;#  $2 - file to read.&lt;BR /&gt;&lt;BR /&gt;# od -D  Interpret long words in unsigned decimal:&lt;BR /&gt;  od -D $2 +$1. | \&lt;BR /&gt;  awk '{ printf"%d",$2; exit }'&lt;BR /&gt;&lt;BR /&gt;} # GetShort()</description>
      <pubDate>Wed, 22 Feb 2006 08:46:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/translate-script-with-command-od/m-p/3736971#M101155</guid>
      <dc:creator>cariteyp</dc:creator>
      <dc:date>2006-02-22T08:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: translate script with command od</title>
      <link>https://community.hpe.com/t5/operating-system-linux/translate-script-with-command-od/m-p/3736972#M101156</link>
      <description>Hi,&lt;BR /&gt;do a man od for full spec.&lt;BR /&gt;The -j option specifies the offset.</description>
      <pubDate>Wed, 22 Feb 2006 09:03:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/translate-script-with-command-od/m-p/3736972#M101156</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-02-22T09:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: translate script with command od</title>
      <link>https://community.hpe.com/t5/operating-system-linux/translate-script-with-command-od/m-p/3736973#M101157</link>
      <description>I try the man command, but I doesn't find the solution.&lt;BR /&gt;Sorry ...</description>
      <pubDate>Wed, 22 Feb 2006 09:29:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/translate-script-with-command-od/m-p/3736973#M101157</guid>
      <dc:creator>cariteyp</dc:creator>
      <dc:date>2006-02-22T09:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: translate script with command od</title>
      <link>https://community.hpe.com/t5/operating-system-linux/translate-script-with-command-od/m-p/3736974#M101158</link>
      <description>The syntax you are using is pre-posix. The posix format would be-&lt;BR /&gt; &lt;BR /&gt;od -t d4 filename&lt;BR /&gt; &lt;BR /&gt;This would dump 4 bytes at a time of of signed decimal&lt;BR /&gt; &lt;BR /&gt;od -t u4 filename&lt;BR /&gt; &lt;BR /&gt;Would dump 4 bytes unsigned decimal&lt;BR /&gt; &lt;BR /&gt;This is described in the "man od".&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Wed, 22 Feb 2006 10:03:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/translate-script-with-command-od/m-p/3736974#M101158</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2006-02-22T10:03:05Z</dc:date>
    </item>
  </channel>
</rss>

