<?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: Anyone know an equivalent to HP-UX vis command in Solaris? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884430#M401166</link>
    <description>&lt;BR /&gt;This seems to work for me.. on Tru64: &lt;BR /&gt;&lt;BR /&gt;perl -pe 's/\000/ /g' file-with-null &amp;gt; file-with-spaces&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
    <pubDate>Mon, 07 Feb 2005 14:57:24 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2005-02-07T14:57:24Z</dc:date>
    <item>
      <title>Anyone know an equivalent to HP-UX vis command in Solaris?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884421#M401157</link>
      <description>My DBA has asked me to parse a file on a Solaris box.   The problem I am running into is the file he want's me to work with has embedded null characters (\000) in it.  He wants me to replace these null characters with spaces.  This can easily be accomplished by using sed and vis on the HP-UX servers, but I can't find an equivalent to vis in Solaris.  I have tried using tr but it won't replace each null character with a space.  Does anyone know of an equivalent command to vis in Solaris???</description>
      <pubDate>Mon, 07 Feb 2005 13:20:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884421#M401157</guid>
      <dc:creator>Jason Berendsen</dc:creator>
      <dc:date>2005-02-07T13:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know an equivalent to HP-UX vis command in Solaris?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884422#M401158</link>
      <description>Hi Jason,&lt;BR /&gt;&lt;BR /&gt;Attached the excel sheet.includes equivqlent commands in Linux,hp,solaris and AIX.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Syam&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Feb 2005 13:45:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884422#M401158</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-02-07T13:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know an equivalent to HP-UX vis command in Solaris?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884423#M401159</link>
      <description>&lt;BR /&gt;Sounds like a Solaris buglette. Ask Sun for a fix?!&lt;BR /&gt;&lt;BR /&gt;Or use PERL as that is most likely to be equal / similar.&lt;BR /&gt;&lt;BR /&gt;If you describe the file in detail, or attach a fraction, maybe a read can help with the transformation (allhough most readers probably have a hard time trying on a Sun box).&lt;BR /&gt;&lt;BR /&gt;for generic HPUX - vs - Solaris - vs - other-unix commands (like the title suggesed to me) be sure to check out:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://bhami.com/rosetta.html" target="_blank"&gt;http://bhami.com/rosetta.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Feb 2005 14:02:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884423#M401159</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-02-07T14:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know an equivalent to HP-UX vis command in Solaris?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884424#M401160</link>
      <description>Hi Jason,&lt;BR /&gt;&lt;BR /&gt; I tried and it worked in my solaris machine.&lt;BR /&gt;&lt;BR /&gt;This is what I used.&lt;BR /&gt;&lt;BR /&gt;#sed -e 's/\\(000)/  /g' &amp;lt; filename &amp;gt; new_file&lt;BR /&gt;&lt;BR /&gt;only replace "filename" as applicable. The dont repace &amp;lt; and &amp;gt; characters.&lt;BR /&gt;&lt;BR /&gt;This replaced the null characters with a space in my machine.Reply with your observations.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Feb 2005 14:03:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884424#M401160</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-02-07T14:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know an equivalent to HP-UX vis command in Solaris?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884425#M401161</link>
      <description>&lt;BR /&gt;on HP box:&lt;BR /&gt;&lt;BR /&gt; mknod /tmp/send_it_back p&lt;BR /&gt; remsh SUNboxname dd if=thatDBAfilename | vis &amp;gt; /tmp/send_it_back&lt;BR /&gt; &lt;BR /&gt;on solaris box:&lt;BR /&gt;&lt;BR /&gt;rsh HPbox dd if=/tmp/send_it_back | dd of=aNEWDBAfile&lt;BR /&gt;&lt;BR /&gt;to UN-vis it (aka inv) just change the command and filenames:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;on HP box:&lt;BR /&gt;&lt;BR /&gt; remsh SUNboxname dd if=aNEWDBAfile | inv &amp;gt; /tmp/send_it_back&lt;BR /&gt; &lt;BR /&gt;on solaris box:&lt;BR /&gt;&lt;BR /&gt;rsh HPbox dd if=/tmp/send_it_back | dd of=aNEWerDBAfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;example of a tar file:&lt;BR /&gt;&lt;BR /&gt;[root@HPBOX /tmp]# remsh pbsbcp dd if=/tmp/craze.tar | vis &amp;gt; /tmp/send_it_back &lt;BR /&gt;1360+0 records in&lt;BR /&gt;1360+0 records out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@SUNBOX /tmp]# uname -a&lt;BR /&gt;SunOS SUNBOXp 5.7 Generic_106541-23 sun4u sparc SUNW,Ultra-5_10&lt;BR /&gt;[root@SUNBOX /tmp]# ls -l craze.tar &lt;BR /&gt;-rw-r--r--   1 root     other     696320 Feb  7 08:17 craze.tar&lt;BR /&gt;[root@SUNBOX /tmp]# rsh vpart1 dd if=/tmp/send_it_back | dd of=/tmp/acraze.tar &lt;BR /&gt;1729+1 records in&lt;BR /&gt;1729+1 records out&lt;BR /&gt;1729+1 records in&lt;BR /&gt;1729+1 records out&lt;BR /&gt;&lt;BR /&gt;then BACK again:&lt;BR /&gt;&lt;BR /&gt;[root@HPBOX /tmp]# remsh pbsbcp dd if=/tmp/acraze.tar | inv &amp;gt; /tmp/send_it_back&lt;BR /&gt;1729+1 records in&lt;BR /&gt;1729+1 records out&lt;BR /&gt;&lt;BR /&gt;[root@SUNBOX /tmp]# rsh vpart1 dd if=/tmp/send_it_back | dd of=/tmp/new_acraze.tar&lt;BR /&gt;1360+0 records in&lt;BR /&gt;1360+0 records out&lt;BR /&gt;1360+0 records in&lt;BR /&gt;1360+0 records out&lt;BR /&gt;[root@SUNBOX /tmp]# ls -l *craze.tar&lt;BR /&gt;-rw-r--r--   1 root     other     885375 Feb  7 14:00 acraze.tar&lt;BR /&gt;-rw-r--r--   1 root     other     696320 Feb  7 08:17 craze.tar&lt;BR /&gt;-rw-r--r--   1 root     other     696320 Feb  7 14:01 new_acraze.tar&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Mon, 07 Feb 2005 14:14:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884425#M401161</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-02-07T14:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know an equivalent to HP-UX vis command in Solaris?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884426#M401162</link>
      <description>&lt;BR /&gt;It's not a bug of solaris, though solaris does lack features and functionality. I'm not aware of any similar solaris command for vis/inv (see man pages for inv or vis).&lt;BR /&gt;&lt;BR /&gt;inv and vis are HP developed utilities. The same can be written in most languages, though perl would work fine, c would be faster.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Mon, 07 Feb 2005 14:20:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884426#M401162</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-02-07T14:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know an equivalent to HP-UX vis command in Solaris?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884427#M401163</link>
      <description>Jason ,&lt;BR /&gt;&lt;BR /&gt;Here are some examples for find and replace using perl.&lt;BR /&gt;&lt;BR /&gt;go to topic 7. Substitution&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Syam</description>
      <pubDate>Mon, 07 Feb 2005 14:26:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884427#M401163</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-02-07T14:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know an equivalent to HP-UX vis command in Solaris?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884428#M401164</link>
      <description>&lt;A href="http://library.n0i.net/programming/perl/re_gex/#7.%20substitution" target="_blank"&gt;http://library.n0i.net/programming/perl/re_gex/#7.%20substitution&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Syam</description>
      <pubDate>Mon, 07 Feb 2005 14:28:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884428#M401164</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-02-07T14:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know an equivalent to HP-UX vis command in Solaris?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884429#M401165</link>
      <description>Syam,  I tried your sed syntax and it didn't replace the null characters with spaces. &lt;BR /&gt;&lt;BR /&gt;Here is an example of what I see in the middle of the line when I use HP-UX /usr/bin/vis:&lt;BR /&gt;425\000\000\000\000\000\00004042&lt;BR /&gt;&lt;BR /&gt;The \000 denote null characters.  Once again in HP it is easy to replace these but there doesn't seem to be an equivalent functionality in Solaris.  I may need to go with Harry's suggestion to code it myself in Perl.  In case anyone has any ideas I have attached a single line of the file that has the null characters in it.  Again I want to keep the character count the same by replacing the null characters with spaces.</description>
      <pubDate>Mon, 07 Feb 2005 14:30:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884429#M401165</guid>
      <dc:creator>Jason Berendsen</dc:creator>
      <dc:date>2005-02-07T14:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know an equivalent to HP-UX vis command in Solaris?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884430#M401166</link>
      <description>&lt;BR /&gt;This seems to work for me.. on Tru64: &lt;BR /&gt;&lt;BR /&gt;perl -pe 's/\000/ /g' file-with-null &amp;gt; file-with-spaces&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Feb 2005 14:57:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884430#M401166</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-02-07T14:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know an equivalent to HP-UX vis command in Solaris?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884431#M401167</link>
      <description>Jason,&lt;BR /&gt;&lt;BR /&gt;b2a.pl:&lt;BR /&gt;#!/usr/bin/perl &lt;BR /&gt;#&lt;BR /&gt;while (!eof()) {&lt;BR /&gt;   $key = getc(STDIN);&lt;BR /&gt;   $num = ord($key);&lt;BR /&gt;   if (($num &amp;gt; 31) &amp;amp;&amp;amp; ($num &amp;lt; 127)) {&lt;BR /&gt;      if ($num == 92) {&lt;BR /&gt;         printf("\\%03d",$num);&lt;BR /&gt;      } else {&lt;BR /&gt;         printf("%s",$key);&lt;BR /&gt;      }&lt;BR /&gt;   } else {&lt;BR /&gt;      if ($num == 10) {&lt;BR /&gt;         printf("\n");&lt;BR /&gt;      } else {&lt;BR /&gt;         printf("\\%03d",$num);&lt;BR /&gt;      }&lt;BR /&gt;   }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;a2b.pl:&lt;BR /&gt;#!/usr/bin/perl &lt;BR /&gt;#&lt;BR /&gt;while (!eof()) {&lt;BR /&gt;   $key = getc(STDIN);&lt;BR /&gt;   $num = ord($key);&lt;BR /&gt;   if ($num == 92) {&lt;BR /&gt;      $val1 = getc(STDIN);&lt;BR /&gt;      $val2 = getc(STDIN);&lt;BR /&gt;      $val3 = getc(STDIN);&lt;BR /&gt;      $key = $val1 . $val2 . $val3;&lt;BR /&gt;      $newkey = chr($key);&lt;BR /&gt;      $key = $newkey;&lt;BR /&gt;   }&lt;BR /&gt;   printf("%s",$key);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Sorry about the no comments. 92=\ I especially escape this out to \###. I leave NL's (newlines) alone. any non-printing character is escapeed to \###, where ### is the ascii DECIMAL value (man ascii).&lt;BR /&gt;&lt;BR /&gt;Of course this can be VERY cleaned up and made more efficient!&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Mon, 07 Feb 2005 16:21:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884431#M401167</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-02-07T16:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know an equivalent to HP-UX vis command in Solaris?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884432#M401168</link>
      <description>Thanks for all the help.  I was able to utilize your suggestions in Perl to get what I needed.</description>
      <pubDate>Tue, 08 Feb 2005 09:01:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-know-an-equivalent-to-hp-ux-vis-command-in-solaris/m-p/4884432#M401168</guid>
      <dc:creator>Jason Berendsen</dc:creator>
      <dc:date>2005-02-08T09:01:10Z</dc:date>
    </item>
  </channel>
</rss>

