The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
can someone help me with modifying this file eamani_sun Shell Programming and Scripting 2 05-22-2008 02:15 PM
Converting Binary decimal coded values to Ascii Values gaur.deepti UNIX for Advanced & Expert Users 3 04-02-2008 01:33 PM
Modifying a csv file from Shell Script not4google Shell Programming and Scripting 2 11-21-2006 06:47 AM
Modifying the final output file charbel Shell Programming and Scripting 5 10-10-2006 02:36 PM
compiled binary file gives "cannot execute binary file" scgupta SUN Solaris 0 07-13-2006 02:59 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 11-03-2005
Nicol Nicol is offline
Registered User
  
 

Join Date: Sep 2003
Location: Paris
Posts: 128
Modifying binary file by editing Hex values ?

Hi ,

i'm using special binary file (lotus notes) and modifying an hexadecimal address range with windows hex editor and it works fine !

The file is an AIX one and i'm forced to transfert (ftp) it before modifying it and re-transfert !

NOW i would do this directly under AIX !

I can display the file with "od -h -Ax" and i wonder how to modify the all range in red with a shell script ?

od -h file.nsf
...........................................
0000140 0000 0025 2ff1 cb40 0000 0000 3204 0000
0000150 da03 0000 ca02 0000 4601 0000 1201 0000
0000160 4201 0000 0000 0000 2e02 0000 0000 0000
0000170 0000 0000 0000 0000 0000 0000 0000 0000
0000180 0000 0000 0000 0000 3e01 0000 0000 0000
0000190 0000 0000 3a01 0000 1e01 0000 0000 0000
00001a0 1a01 0000 0000 0000 0000 0000 0601 0000
00001b0 0000 000

the purpose here , is to write "0" over all values of the range !

Something like : "cat file.nsf|.................|od -h -Ax"

thanks in advance

Christian
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0