<?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: Edit binary file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867486#M937331</link>
    <description>I don't think you can or moreover you should not.&lt;BR /&gt;&lt;BR /&gt;In case you want you should change source code.</description>
    <pubDate>Thu, 19 Dec 2002 03:59:04 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2002-12-19T03:59:04Z</dc:date>
    <item>
      <title>Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867485#M937330</link>
      <description>Which tool or command can edit binary file?&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 19 Dec 2002 04:31:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867485#M937330</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2002-12-19T04:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867486#M937331</link>
      <description>I don't think you can or moreover you should not.&lt;BR /&gt;&lt;BR /&gt;In case you want you should change source code.</description>
      <pubDate>Thu, 19 Dec 2002 03:59:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867486#M937331</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2002-12-19T03:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867487#M937332</link>
      <description>It is can be shown by xd command.&lt;BR /&gt;But I'm not sure which command could modify &lt;BR /&gt;the binary file contents. As I know, it could&lt;BR /&gt;be modified by UltraEdit tool, how about in&lt;BR /&gt;HP UNIX?</description>
      <pubDate>Thu, 19 Dec 2002 04:08:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867487#M937332</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2002-12-19T04:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867488#M937333</link>
      <description>You can't. A binary file is built by a program compiler from source code. If you need to make changes, you do this to the source code and re-compile it.</description>
      <pubDate>Thu, 19 Dec 2002 04:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867488#M937333</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-12-19T04:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867489#M937334</link>
      <description>you can edit a binary file by writing a c program which does a direct I/O by using fwrite and fread functions. &lt;BR /&gt;&lt;BR /&gt;Rajeev</description>
      <pubDate>Thu, 19 Dec 2002 04:44:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867489#M937334</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2002-12-19T04:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867490#M937335</link>
      <description>I have not worked with editing the binary files but you are right,&lt;BR /&gt;you can use xd to make dump of the binary file.&lt;BR /&gt;&lt;BR /&gt;open it using any editor and then re-create a new binary file after modifications.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Revert</description>
      <pubDate>Thu, 19 Dec 2002 04:55:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867490#M937335</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-12-19T04:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867491#M937336</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;xd creates Hexadecimal dump of the file which yu can't understand (edit)</description>
      <pubDate>Thu, 19 Dec 2002 05:19:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867491#M937336</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2002-12-19T05:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867492#M937337</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;xd creates Hexadecimal dump of the file which yu can't understand (edit) (you can't edit a binary file)</description>
      <pubDate>Thu, 19 Dec 2002 05:24:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867492#M937337</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2002-12-19T05:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867493#M937338</link>
      <description>The main thing&lt;BR /&gt;&lt;BR /&gt;You can do what you want but,&lt;BR /&gt;&lt;BR /&gt;ONLY EDIT A BACKUP FILE !!!!&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Thu, 19 Dec 2002 07:12:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867493#M937338</guid>
      <dc:creator>Christian Gebhardt</dc:creator>
      <dc:date>2002-12-19T07:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867494#M937339</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;of course you can edit binary files with a hex-editor, look at &lt;BR /&gt;&lt;A href="http://hpux.tn.tudelft.nl/hppd/hpux/Development/Tools/hexedit-0.9.7/" target="_blank"&gt;http://hpux.tn.tudelft.nl/hppd/hpux/Development/Tools/hexedit-0.9.7/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can change textblocks, outputs, error messages and so on. The main thing is that the internal adresses of the binary may not change.&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Thu, 19 Dec 2002 07:12:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867494#M937339</guid>
      <dc:creator>Christian Gebhardt</dc:creator>
      <dc:date>2002-12-19T07:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867495#M937340</link>
      <description>Take a look at the ELVIS free vi clone&lt;BR /&gt;Elvis can edit binary files&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://elvis.the-little-red-haired-girl.org/gettingelvis/index.html" target="_blank"&gt;http://elvis.the-little-red-haired-girl.org/gettingelvis/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rainer&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Dec 2002 07:40:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867495#M937340</guid>
      <dc:creator>Rainer von Bongartz</dc:creator>
      <dc:date>2002-12-19T07:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867496#M937341</link>
      <description>I would get this file to my pc and use some utilities to edit it. You know, windows (and sometimes DOS [norton-commander]) offers more 'user-friendly' interface than hpux command line :o)&lt;BR /&gt;Eugeny</description>
      <pubDate>Thu, 19 Dec 2002 09:24:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867496#M937341</guid>
      <dc:creator>Eugeny Brychkov</dc:creator>
      <dc:date>2002-12-19T09:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867497#M937342</link>
      <description>You can edit binary files, but you need to know it's binary format.  Getting the format can be a real challenge.  It's often very difficult to decypher a binary file format.  I have tried to get binary file formats from vendors.  Vendors sometime have crazy algorythms to prevent users from using their format.&lt;BR /&gt;&lt;BR /&gt;If you know the format, you will need to use a programming language that supports the data formats contained in the file.  &lt;BR /&gt;&lt;BR /&gt;Unless you have a good idea as to the format of the file, I would work with the vendor to determine the file format and language they use to read and write the files.  Heck they may even give you an includes with some nice data structures!&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;&lt;BR /&gt;Tom&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Dec 2002 12:34:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867497#M937342</guid>
      <dc:creator>Tom Jackson</dc:creator>
      <dc:date>2002-12-19T12:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867498#M937343</link>
      <description>For very simple binary edits, using standard HP-UX commands:&lt;BR /&gt;&lt;BR /&gt;vis -n binary_file &amp;gt;text_file&lt;BR /&gt;vi text _file # Or other text editor&lt;BR /&gt;inv -n text_file &amp;gt;binary_file</description>
      <pubDate>Thu, 19 Dec 2002 12:54:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867498#M937343</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-12-19T12:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867499#M937344</link>
      <description>Question for Eugeny Brychkov   ... and how are you going to use that Unix-binary file after modifying (open/read/write/save/close) it on Wintho$e machine ?&lt;BR /&gt;  &lt;BR /&gt;</description>
      <pubDate>Thu, 19 Dec 2002 13:12:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867499#M937344</guid>
      <dc:creator>T. M. Louah</dc:creator>
      <dc:date>2002-12-19T13:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867500#M937345</link>
      <description>The problem is not so easily answered.  Is this a binary data file, executable, or library file?&lt;BR /&gt;&lt;BR /&gt;If it's data, you can use a hex editor, but you can still wreck data if you dont know how it's formatted.  So while it sounds easy, it's not.  &lt;BR /&gt;&lt;BR /&gt;If it's an executable or library file, I would not bother.  You will most likely corrupt the file by making any changes to it.  Simple text substitution even means that character count in strings MUST match.  Adding or subtracting characters will corrupt the file.&lt;BR /&gt;&lt;BR /&gt;Rule of thumb.  Work on a backup copy so you dont hoze the original.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Thu, 19 Dec 2002 13:58:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867500#M937345</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2002-12-19T13:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867501#M937346</link>
      <description>Use emacs.  If you want to get fancy,&lt;BR /&gt;emacs has a special mode called&lt;BR /&gt;hexl-mode.&lt;BR /&gt;&lt;BR /&gt;About the only things you can safely&lt;BR /&gt;modify are strings, and perhaps numbers&lt;BR /&gt;if you are careful and know a bit about&lt;BR /&gt;the internal representation of them.&lt;BR /&gt;&lt;BR /&gt;If it's a C-language program and you trust&lt;BR /&gt;that it's using libc strings (and not&lt;BR /&gt;roll-your-own strings) you can modify any&lt;BR /&gt;string in the file as long as the replacement&lt;BR /&gt;string is shorter than or the same length as&lt;BR /&gt;the original.  The null byte at the end of libc&lt;BR /&gt;strings makes this work, even if the&lt;BR /&gt;replacement is shorter than the original.  If&lt;BR /&gt;the replacement is longer than the original&lt;BR /&gt;you are out of luck.&lt;BR /&gt;&lt;BR /&gt;Just out of curiosity, why would you want&lt;BR /&gt;to do such a thing?</description>
      <pubDate>Thu, 19 Dec 2002 21:05:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867501#M937346</guid>
      <dc:creator>Gregory Fruth</dc:creator>
      <dc:date>2002-12-19T21:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867502#M937347</link>
      <description>I've a tool called 'xvi', which can be used on HP-UX and is almost similar to vi. I've attached the binary here. Hope this helps.&lt;BR /&gt;&lt;BR /&gt;rgds,&lt;BR /&gt;Ravi B Hiremath</description>
      <pubDate>Fri, 20 Dec 2002 05:54:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867502#M937347</guid>
      <dc:creator>RAVI B. HIREMATH</dc:creator>
      <dc:date>2002-12-20T05:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867503#M937348</link>
      <description>My previous reply miss the attachment. Here is the attachment.&lt;BR /&gt;&lt;BR /&gt;rgds,&lt;BR /&gt;Ravi B Hiremath</description>
      <pubDate>Fri, 20 Dec 2002 06:01:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867503#M937348</guid>
      <dc:creator>RAVI B. HIREMATH</dc:creator>
      <dc:date>2002-12-20T06:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Edit binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867504#M937349</link>
      <description>A tool that I've used for editing binary files (specifically, editing header content in data files)  is "beav" - binary editor and viewer.  You can download it from the HP-Ux Porting &amp;amp; Archive Centre here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.ee.ualberta.ca/hppd/hpux/Editors/beav-14.0.6/" target="_blank"&gt;http://hpux.ee.ualberta.ca/hppd/hpux/Editors/beav-14.0.6/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Dec 2002 14:23:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-file/m-p/2867504#M937349</guid>
      <dc:creator>Tom Hayward</dc:creator>
      <dc:date>2002-12-20T14:23:51Z</dc:date>
    </item>
  </channel>
</rss>

