<?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 Re: od usage in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/od-usage/m-p/2638084#M42879</link>
    <description>Hi Sandip,&lt;BR /&gt;&lt;BR /&gt;Do you try this?:&lt;BR /&gt;&lt;BR /&gt;sed 's/$/\\o/g' test &amp;gt; test.out&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
    <pubDate>Thu, 03 Jan 2002 11:31:41 GMT</pubDate>
    <dc:creator>Justo Exposito</dc:creator>
    <dc:date>2002-01-03T11:31:41Z</dc:date>
    <item>
      <title>od usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/od-usage/m-p/2638083#M42878</link>
      <description>Hi Gurus,&lt;BR /&gt;&lt;BR /&gt;Suppose I have text file &amp;amp; file content is as below.&lt;BR /&gt; $cat test&lt;BR /&gt; abcd efgh&lt;BR /&gt;Now I want to replace \n with \o during usage of od. It is working perfectly.&lt;BR /&gt; od -c test | sed 's/\\n/\\o/g' &lt;BR /&gt;but if I redirect that output in any test file then I would get octal output . I would not get same character what I had in test. Is it possible to convert from octal to character.&lt;BR /&gt;&lt;BR /&gt;Like it would show as like &lt;BR /&gt;abcd efgh\o&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Jan 2002 11:23:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/od-usage/m-p/2638083#M42878</guid>
      <dc:creator>Joydeep_1</dc:creator>
      <dc:date>2002-01-03T11:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: od usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/od-usage/m-p/2638084#M42879</link>
      <description>Hi Sandip,&lt;BR /&gt;&lt;BR /&gt;Do you try this?:&lt;BR /&gt;&lt;BR /&gt;sed 's/$/\\o/g' test &amp;gt; test.out&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Thu, 03 Jan 2002 11:31:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/od-usage/m-p/2638084#M42879</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-01-03T11:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: od usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/od-usage/m-p/2638085#M42880</link>
      <description>Hi Sandip,&lt;BR /&gt;&lt;BR /&gt;What do you mean by "redirect the output" gives you octal?&lt;BR /&gt;&lt;BR /&gt;Thanks, Robin.</description>
      <pubDate>Thu, 03 Jan 2002 11:38:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/od-usage/m-p/2638085#M42880</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-01-03T11:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: od usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/od-usage/m-p/2638086#M42881</link>
      <description>Actually I want to see that plain test file's octal value &amp;amp; after that I want to change octal value \n to \o &amp;amp; want to see what it affect in that test file. But after converting character to octal , how can I reconvert it from octal character ?&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Jan 2002 12:17:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/od-usage/m-p/2638086#M42881</guid>
      <dc:creator>Joydeep_1</dc:creator>
      <dc:date>2002-01-03T12:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: od usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/od-usage/m-p/2638087#M42882</link>
      <description>Not sure I understand completely, but I'm guessing you want to simply replace all \n chars in a file with \0 (you've written \o but I'm not sure what charater that represents??).  Is this correct?&lt;BR /&gt;&lt;BR /&gt;If so, try the tr command:&lt;BR /&gt;&lt;BR /&gt;$ tr '\n' '\0' &amp;lt; input &amp;gt; output&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 03 Jan 2002 12:25:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/od-usage/m-p/2638087#M42882</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-01-03T12:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: od usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/od-usage/m-p/2638088#M42883</link>
      <description>Sandip,&lt;BR /&gt;&lt;BR /&gt;Steven's example of "tr" works. It was confusing when you posted "\o", as it appears you are trying to replace newlines (\n) with nulls (\0 [slash zero] not \o).&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 03 Jan 2002 13:01:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/od-usage/m-p/2638088#M42883</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-03T13:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: od usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/od-usage/m-p/2638089#M42884</link>
      <description>Hi Sandip,&lt;BR /&gt;&lt;BR /&gt;Here's a little more info...&lt;BR /&gt;&lt;BR /&gt;od is not a text conversion tool - it is a tool used to display the contents of a file and is particularly helpful for determining what unprintable characters may be in a file.&lt;BR /&gt;&lt;BR /&gt;The output of od is always an ascii file (formatted for ease of reading) whether it's to stdout or redirected to a disk file.  Test this:&lt;BR /&gt;od -c test | sed 's/\\n/\\o/g' &amp;gt;od.output&lt;BR /&gt;file od.output&lt;BR /&gt;cat od.output&lt;BR /&gt;ls -l od.output&lt;BR /&gt;od -c od.output&lt;BR /&gt;&lt;BR /&gt;Also, -c argument of od is for ascii representation.  To see the octal representation of an ascii test file (like your test file) use -b.  Man od for more options.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 03 Jan 2002 14:33:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/od-usage/m-p/2638089#M42884</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-01-03T14:33:41Z</dc:date>
    </item>
  </channel>
</rss>

