4
votes
3answers
1k views

Is there a program which can count occurrence of a certain string in a binary file?

I have a binary file and I need to count occurrences of certain string in this file or even list then with offsets. In windows or Linux (for this task I use Fedora 12 and w2k).
5
votes
2answers
268 views

modify 128 bytes

I have to replace on a linux webserver, the first 128 bytes of some binary files. The files have a size of ~ 5Gb and I just have to rewrite the header bytes. What would be the best aproach to do this ...
-1
votes
1answer
3k views

Changing binary file to readable text file

I have a program that creates a file that stores text like this: application/octet-stream; charset=binary now i need to convert this file to this: text/plain; charset=us-ascii i know this is ...
1
vote
1answer
361 views

List of binary compatible Linux derivates

I'm looking for an overview of binary compatible linux derivates to enterprise Linux versions. A usable definition of this compatibility is given on Wikipedia. I already know candidates for this: ...
0
votes
2answers
226 views

What is a good strategy to maintain a set of binaries for Gentoo?

There is the world favourites file in which you can record your favourite packages, then there is the where you can record packages and compile whenever. Also there is http://paludis.pioto.org/. ...
6
votes
2answers
4k views

Binary diff/patch for large files on linux?

I've got two partition images (A and B) and want to use them to create a patch that I can apply on A on another computer in order to get the new B image without flooding the network. I have the ...
0
votes
1answer
773 views

Cannot execute binary in Linux?

I'm trying to download / execute the Centos 5 64bit auto installer: http://www.parallels.com/download/sitebuilder4/#CENTOS5X86_64 ...
1
vote
3answers
401 views

Overriding Linux libraries for historical binary-only tools

I have a 64 bit Ubuntu Linux box. Recently I was given an old compiled binary that used to run on an old, retired server, which I THINK was a 2007-era Redhat distribution. As you might expect, the ...
1
vote
2answers
1k views

Unable to find php binary

PHP is running fine with apache on my server. I want to use it from command line but I am unable to find the binary: root@....:~# whereis php php: root@....:~# whereis php5 php5: /etc/php5 ...
2
votes
2answers
2k views

How to prepend 8 bytes of data to a binary file in Linux?

I would like to add 8 bytes of data to the beginning of a binary file. Is there a Linux command for this?
0
votes
1answer
2k views

Unconvert Text File from Binary Format

I've got a rather large CSV file (~700MB) which I know to consist of lines of 27-character alpha-numeric hashes; no commas or anything fancy. Somehow, during its migration from Windows to Linux (via ...
0
votes
4answers
449 views

Distributing binary with dependencies in Linux

I'm developing a cross-platform application and I'm having trouble with distributing a Linux binary. In Windows the dll's were - libsndfile-1.dll lua5.1.dll lua51.dll openal32.dll sfml-audio.dll ...
2
votes
1answer
9k views

How to check the version of the dynamic linker?

If I run a binary compiled on a newer Linux distro on an older Linux distro, I may get an error like this: error while loading shared libraries: requires glibc 2.5 or later dynamic linker ...
9
votes
2answers
2k views

Command to find the source package of a binary?

I know there's a which command, that echoes the full name of a binary (e.g. which sh). However, I'm fairly sure there's a command that echoes the package that provides a particular binary. Is there ...
17
votes
4answers
21k views

How do I do a binary diff on two identically sized files under Linux?

I have two identically sized files, and I need to do a binary diff to check whether they're the same. I'm currently runnnig diff file1.img file2.img but it's taking quite a while to process my ...
4
votes
2answers
2k views

Change first byte of file in Linux?

How can I change the first byte of multiple files in Linux? Willing to use perl/awk/sed/whatever. Must work correctly on binary files (i.e. not change any other bytes).
4
votes
4answers
1k views

Linux binary support under Mac OS X?

Is there a way to add Linux binary compatibility to Mac OS X 10.5+ such as that found in FreeBSD? For instance, and totally as an example, here is Arlequin 3.5, a population genetics software that my ...
4
votes
3answers
4k views

Can I run 64-bit executables on a 32-bit Linux?

If yes, how? OS: 32-bit Red Hat Enterprise Linux Client release 5.4 (Tikanga)