Binary files diff


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Binary files diff
# 8  
Old 04-27-2012
It doesn't work that way.

When you compile a program, it doesn't just dump down everything you do in text in some raw, binary format. The compiler must actually translate, and makes many complicated decisions about which is the most optimal way to do something.

Slightly different systems, environments, compilers, compiler options, and source code can all cause the code generated to be radically different.

In short, the change from source code to binary program is rather irreversible. The code doesn't resemble the input anymore, there's not much meaningful left to compare.

Last edited by Corona688; 04-27-2012 at 02:49 PM..
# 9  
Old 08-16-2012
can any one tell the difference bte binary file and normal file in unix
# 10  
Old 08-16-2012
Please avoid hijacking 4-month-old threads.
The terms "basic file" does not appear in unix (or any other Operating System which I can think of). The usual distinction is "text file" compared with "binary file". There are many types of "binary file".
The very basic answer is to use the unix file command.
e.g.
Code:
file filename

Try it and see if it gives the result you require.
# 11  
Old 08-17-2012
can any one solve this for me

hi this is krish
1.can any one tell how to know the background job is done
2.what is trace root
3.ip config mean what exactly it is ?
4.how to know if other user is using our login id and the process running on our id?
5 In top command what the load 3 values represent and how to know load is more or less?
# 12  
Old 08-17-2012
Hi krish,Please open a new thread for your clari or queries. Dont use others thread that will make a lot of confusion. If you do the same again and again, moderators will punish you.Mods what are you doing guys?Cheers,Ranga:-)
# 13  
Old 08-19-2012
@nvramakrishna
Please open a new thread in the Homework Forum according to the Homework rules, and take some time to transcribe the questions accurately and to show your own effort.

e.g.
"trace root" should surely be "traceroute".
"ip config" should surely be "ipconfig".
# 14  
Old 08-19-2012
Moderator's Comments:
Mod Comment Hijacked thread closed
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Diff 3 files, but diff only their 2nd column

Guys i have 3 files, but i want to compare and diff only the 2nd column path=`/home/whois/doms` for i in `cat domain.tx` do whois $i| sed -n '/Registry Registrant ID:/,/Registrant Email:/p' > $path/$i.registrant whois $i| sed -n '/Registry Admin ID:/,/Admin Email:/p' > $path/$i.admin... (10 Replies)
Discussion started by: kenshinhimura
10 Replies

2. Shell Programming and Scripting

Binary files

Hi All,Is there anyway I can conver the binary file to ascii. I don't know the binary file format. file command just lists this as "data" file and when I view it has a lot of non-printable characters.Can I write any command equivalent to wc -l to find out the number of rows in the file?Can I use... (4 Replies)
Discussion started by: rahulkav
4 Replies

3. Shell Programming and Scripting

diff bw two files

Hi All, I have two files which look as below File1 serial="1" name="abc" type="employee" field="IT" serial="2" name="cde" type="intern" field="Marketing" serial="3" name="pqr" type="contractor" field="IT" serial="4" name="xyz" type="employee" field="Sales" File2 serial="1"... (3 Replies)
Discussion started by: grajp002
3 Replies

4. Shell Programming and Scripting

diff of files

Hi, I have 2 files.I want to check if file1 is contained in file2. A.txt: ----- AAA BBB B.txt: ------ CCC AAA BBB DDD I want to check if A.txt is contained in B.txt. Can it be done using SED ? (12 Replies)
Discussion started by: giri_luck
12 Replies

5. Shell Programming and Scripting

Diff b/w 2 files

Hi Masters, I have two files named file1 and file2. Both the files contains the same contents with some difference in comments,space.But no content change. I tried to find the diff between the two files to make sure that contents are same. For that i tried diff -ibw file1 file2 But... (1 Reply)
Discussion started by: ecearund
1 Replies

6. Shell Programming and Scripting

Find duplicates from multuple files with 2 diff types of files

I need to compare 2 diff type of files and find out the duplicate after comparing each types of files: Type 1 file name is like: file1.abc (the extension abc could any 3 characters but I can narrow it down or hardcode for 10/15 combinations). The other file is file1.bcd01abc (the extension... (2 Replies)
Discussion started by: ricky007
2 Replies

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

8. UNIX for Dummies Questions & Answers

Binary Files

Here's the problem... I'm using a simulator on UNIX, and it requires a filename where bits are stored, it should read them out and do whatever with them at that point.. So what i'm trying to do is make a binary file on UNIX. On my PC i can use MSDEV, or any of my C++ compilers to generate a... (2 Replies)
Discussion started by: wcRandThor
2 Replies

9. Shell Programming and Scripting

diff 2 files; output diff's to 3rd file

Hello, I want to compare two files. All records in file 2 that are not in file 1 should be output to file 3. For example: file 1 123 1234 123456 file 2 123 2345 23456 file 3 should have 2345 23456 I have looked at diff, bdiff, cmp, comm, diff3 without any luck! (2 Replies)
Discussion started by: blt123
2 Replies

10. UNIX for Dummies Questions & Answers

Binary Files

Does any one know how to view a binary file as it is (in 1s and 0s) on unix environment? (1 Reply)
Discussion started by: devildivine
1 Replies
Login or Register to Ask a Question