Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xdiff_string_rabdiff(3) [php man page]

XDIFF_STRING_RABDIFF(3) 						 1						   XDIFF_STRING_RABDIFF(3)

xdiff_string_rabdiff - Make binary diff of two strings using the Rabin's polynomial fingerprinting algorithm

SYNOPSIS
string xdiff_string_bdiff (string $old_data, string $new_data) DESCRIPTION
Makes a binary diff of two strings and returns the result. The difference between this function and xdiff_string_bdiff(3) is different algorithm used which should result in faster execution and smaller diff produced. This function works with both text and binary data. Resulting patch can be later applied using xdiff_string_bpatch(3)/xdiff_file_bpatch(3). For more details about differences between algorithm used please check libxdiff website. PARAMETERS
o $old_data - First string with binary data. It acts as "old" data. o $new_data - Second string with binary data. It acts as "new" data. RETURN VALUES
Returns string with binary diff containing differences between "old" and "new" data or FALSE if an internal error occurred. SEE ALSO
xdiff_string_bpatch(3). PHP Documentation Group XDIFF_STRING_RABDIFF(3)

Check Out this Related Man Page

XDIFF_FILE_BDIFF_SIZE(3)						 1						  XDIFF_FILE_BDIFF_SIZE(3)

xdiff_file_bdiff_size - Read a size of file created by applying a binary diff

SYNOPSIS
int xdiff_file_bdiff_size (string $file) DESCRIPTION
Returns a size of a result file that would be created after applying binary patch from file $file to the original file. PARAMETERS
o $file - The path to the binary patch created by xdiff_string_bdiff(3) or xdiff_string_rabdiff(3) function. RETURN VALUES
Returns the size of file that would be created. EXAMPLES
Example #1 xdiff_file_bdiff_size(3) example The following code applies reads a size of file that would be created after applying a binary diff. <?php $length = xdiff_string_bdiff_size('file.bdiff'); echo "Resulting file will be $length bytes long"; ?> SEE ALSO
xdiff_file_bdiff(3), xdiff_file_rabdiff(3), xdiff_file_bpatch(3). PHP Documentation Group XDIFF_FILE_BDIFF_SIZE(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Joining two or more binary files together

Is there a way to join two or more binary files together without corrupting the data? I've searched the forums, and googled etc. but the only commands that get mentioned are 'cat', which only works for text files and 'join'. According to the man pages join is a 'relational database operator',... (5 Replies)
Discussion started by: Boothy
5 Replies

2. UNIX for Dummies Questions & Answers

instead of psftp?

psftp binary size is about to 300K and I need a smaller one. anyone suggests any idea? (4 Replies)
Discussion started by: zoque
4 Replies

3. UNIX for Dummies Questions & Answers

How to convert binary Unix file to text

Hi all, I have a print control file (dflt) for Oracle which is in binary. As I am going to develope an application in Window environment, I would like to reference the dflt file. But it is in binary format and I cannot access it. Anyone can suggest me how to convert the file into text or... (5 Replies)
Discussion started by: user12345
5 Replies

4. Programming

trying to convert binary data to text using C++

i hav tried to convert binary 2D data into text using binreader and writing into text file using streamwriter. i use ReadSingle() function to convert from binary to ascii, although it works good in 1D data but not in more dimensions. the kind of values i get are -1.265369923E+038 and like ... (2 Replies)
Discussion started by: geet
2 Replies

5. UNIX for Advanced & Expert Users

Deal with binary sequences

Hello, I have come across the necessity for me to deal with binary sequences and I had a few questions. 1- Does any UNIX scripting language provide any tool or command for converting text data to binary sequences? Example of binary sequence: "0x97 0x93 0x85 0x40 0xd5 0xd6 0xd7" 2- If I want... (2 Replies)
Discussion started by: Indalecio
2 Replies

6. Shell Programming and Scripting

How to check binary files in VI editor?

Hi, i have a file that contain both text and binary inside the file.. i want to see the binary part.. how can i check that ? (2 Replies)
Discussion started by: mail2sant
2 Replies

7. 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

8. Shell Programming and Scripting

How to search for string and return binary result?

Hi, I have a problem that I am sure someone will know the answer to. Currently I have a script which returns a binary output if it finds a certain search string (in this case relating to a DRBD cluster) as follows: searchstring="cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate" && echo... (3 Replies)
Discussion started by: almightybunghol
3 Replies

9. Shell Programming and Scripting

Grep on a binary file

Hi everyone. I have a binary file in wich there is a date with format DDMMMYY, for example 02May09. I can see it opening this file with vim: inside a binary mess, I can clearly read that string. Now: do you know a way to extract this string from the file? I woul like to do something... (14 Replies)
Discussion started by: canduc17
14 Replies

10. Shell Programming and Scripting

Need help in patttern replace

hello=value some text hello=string diff text In the above given text in a file I want to replace hello=<something> with hello=hi,Like the one given below hello=hi some text hello=hi diff text I am finding hard to get a solution since the hello=<something> can carry any pattern... (2 Replies)
Discussion started by: prasperl
2 Replies

11. UNIX for Advanced & Expert Users

Insert string in binary file at top

How can i append a EBCDIC string of 100 bytes to 0th position of a binary file in UNIX. (4 Replies)
Discussion started by: param_it
4 Replies

12. Solaris

A string in a binary file

hi experts, anyone knows how can i find a string in a multiple binary files in a multiple directories and display the file name containing the string? i mean i have lots of folders with binary files and i am looking for specific string within one of these files i would like to know the right... (6 Replies)
Discussion started by: q8devilish
6 Replies

13. Shell Programming and Scripting

Removing inline binary data from txt file

I am trying to parse a file but the filehas binary data inline mixed with text fields. I tried the binutils strings function , it get the binary data out but put the char following the binary data in a new line . input file app_id:1936 pgm_num:0 branch:TBNY ord_num:0500012(–QMK) deal_num:0... (12 Replies)
Discussion started by: tasmac
12 Replies

14. Red Hat

Block binary execution

Hi guys, Is it possible on rhel 6.2 to block execution of a binary and display a custom message on stdout or stderr? thanks (5 Replies)
Discussion started by: gkout
5 Replies

15. Shell Programming and Scripting

Problem with binary file

I have a binary file with all content is text, i want convert this binary to a regular file because i want to parse it. Thx. ---------- Post updated at 05:01 AM ---------- Previous update was at 04:34 AM ---------- I have found the solution cat file | tr -d '\0' (8 Replies)
Discussion started by: protocomm
8 Replies