Sponsored Content
Full Discussion: Editing Binary Files in Unix
Top Forums Shell Programming and Scripting Editing Binary Files in Unix Post 302257492 by cool.aquarian on Wednesday 12th of November 2008 10:47:44 AM
Old 11-12-2008
Question Editing Binary Files in Unix

Hi,

Is there a way to edit BINARY files in Unix.

Or even are there any commands (shellscript/perl) through which I can replace all the occurences of a string inside a BINARY file with another string ??
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

editing unix files on NT

i currently am using a unix server and NT pc. i have downloaded a ziped file that should explode into 3 seperate unix based files, however when i unzip it using Alading Expander it displays only 1. This exploded version contains all 3 files ( you can scroll down when viewing the file and see the... (1 Reply)
Discussion started by: pixelmonkey
1 Replies

2. UNIX for Advanced & Expert Users

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... (4 Replies)
Discussion started by: Nicol
4 Replies

3. Shell Programming and Scripting

search for files excluding binary files

Hi All, I need a solution on my following find command find ./.. -name '*.file' -print BTW This gives me the output as belows ./rtlsim/test/ADCONV0/infile/ad0_dagctst.file ./rtlsim/test/ADCONV0/user_command.file ./rtlsim/test/ADCONV0/simv.daidir/scsim.db.dir/scsim.db.file... (2 Replies)
Discussion started by: user_prady
2 Replies

4. Shell Programming and Scripting

Editing files to add some thing in all the files in a folder

Hi All, I have a folder that contains 100's of files and each file have a similar content like the following format: ((STBJa:200.0,((STBTz:200.0,(STSwe:200.0,(STDUw:200.0,(ST4Bu:200.0,STL2b:200.0):127.0):86.0):80.0):120.0, STAHr:200.0):134.0):200.0,STuNg:200.0);What I need is to do is add "#1"... (2 Replies)
Discussion started by: Lucky Ali
2 Replies

5. Programming

Editing binary files

I am working in C and need a solution for below problem: I have a binary file, which needs to be edited in such a way no data is loss. For example i have to insert 3 bytes of data at some position without changing the contents of the file. if file has data as:... (2 Replies)
Discussion started by: junaid.nehvi
2 Replies

6. Shell Programming and Scripting

Editing Binary File

Dear Experts, I have one binary file which contains multiple 31k (31744) records. Each record begins with "a6 82". So the pattern is: a6 82 (+31742 bytes) a6 82 (+31742 bytes) a6 82 (+31742 bytes) a6 82 (+31742 bytes) There are some corrupted files where record does... (6 Replies)
Discussion started by: dhiraj4mann
6 Replies

7. Shell Programming and Scripting

editing files.

hello, i have a problem. suppose file.txt i want to add lines over those lines in a file if it starts and ends with how and "?" respectively. i want output like output file.txt thanks (4 Replies)
Discussion started by: yashwantkumar
4 Replies

8. UNIX for Dummies Questions & Answers

Sorting binary files using UNIX sort

Hi, Can i sort binary files using unix sort ? (4 Replies)
Discussion started by: AmbikaValagonda
4 Replies

9. Shell Programming and Scripting

Need help with Reading/Editing of EBCDIC files at UNIX

Hi Folks, I need your help with Reading/Editing of EBCDIC files at UNIX. "dd" is not helping much so "iconv" too (as my file is packed decimal type). we will not be able to get access of powerexchange or mainframe. I need atleast 100 records from each file.(if all is possible it would be... (3 Replies)
Discussion started by: ektubbe
3 Replies

10. Shell Programming and Scripting

Bash script deleting my files, and editing files in subdirectories question

#!/bin/bash # name=$1 type=$2 number=1 for file in ./** do if then filenumber=00$number elif then filenumber=0$number fi tempname="$name""$filenumber"."$type" if (4 Replies)
Discussion started by: TheGreatGizmo
4 Replies
SYBASE_FETCH_ROW(3)													       SYBASE_FETCH_ROW(3)

sybase_fetch_row - Get a result row as an enumerated array

SYNOPSIS
array sybase_fetch_row (resource $result) DESCRIPTION
sybase_fetch_row(3) fetches one row of data from the result associated with the specified result identifier. Subsequent call to sybase_fetch_row(3) would return the next row in the result set, or FALSE if there are no more rows. PARAMETERS
o $result - RETURN VALUES
Returns an array that corresponds to the fetched row, or FALSE if there are no more rows. Each result column is stored in an array offset, starting at offset 0. Data types +-------+---------------------------------------------------+ | PHP | | | | | | | Sybase | | | | +-------+---------------------------------------------------+ |string | | | | | | | VARCHAR, TEXT, CHAR, IMAGE, BINARY, VARBINARY, | | | DATETIME | | | | | int | | | | | | | NUMERIC (w/o precision), DECIMAL (w/o precision), | | | INT, BIT, TINYINT, SMALLINT | | | | |float | | | | | | | NUMERIC (w/ precision), DECIMAL (w/ precision), | | | REAL, FLOAT, MONEY | | | | | | | | NULL | | | | | | | NULL | | | | +-------+---------------------------------------------------+ SEE ALSO
sybase_fetch_array(3), sybase_fetch_assoc(3), sybase_fetch_object(3), sybase_data_seek(3), sybase_result(3). PHP Documentation Group SYBASE_FETCH_ROW(3)
All times are GMT -4. The time now is 03:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy