Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Comparison between binary files Post 302229759 by smehra_20 on Wednesday 27th of August 2008 09:20:13 PM
Old 08-27-2008
Comparison between binary files

Hello,

I would like to know if we can compare binary(non text) files in unix
eg. exes

Thanks

Saurabh
 

10 More Discussions You Might Find Interesting

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

2. Shell Programming and Scripting

Binary Comparison

Hi guys, I need to write a script that will list all the files in the current diretory which are identical to a filename that the user enters using binary comparison, but I'm not entirely sure how to go about it. It's part of a larger script of system administration tools but I just can't find... (3 Replies)
Discussion started by: indigoecho
3 Replies

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

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

5. Shell Programming and Scripting

comparison of 2 files

Kindly help on follows. I have 2 files. One file contains only one column of mobile numbers. And total records in a file 12 million. Second file contains 2 columns mobile numbers and balance. and total records 30 million. I want to find out balance of each data in file 1 corresponding to file 2.... (2 Replies)
Discussion started by: kamal_418
2 Replies

6. Shell Programming and Scripting

Comparison of two files (sh)

Hi, I have a problem with comparison of two files file1 20100101 20090101 20080101 20071001 20121229 file2 19990112 12 456 7 20011131 19 20100101 2 567 1 987 17890709 123 555 and, sh script needs to compare of these two files and give out to me result: 20100101 2 567 1 987 it... (5 Replies)
Discussion started by: shizik
5 Replies

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

8. Shell Programming and Scripting

Comparison of two files

Hi all I have two files which I have to compare that whetehr there is soemthing common or not body, div, table, thead, tbody, tfoot, tr, th, td, p { font-family: "Liberation Sans"; font-size: x-small; } body, div, table, thead, tbody, tfoot,... (2 Replies)
Discussion started by: manigrover
2 Replies

9. Shell Programming and Scripting

Complex comparison of 3 files

Hello to all in forum, May you experts could help me with this complex comparison please. I need to search the numbers in file1 within column3 of file2 and if found, compare column4 to NF of file2 with the lines in file3. If the column4 to NF in file2 match any of the lines in file3,... (5 Replies)
Discussion started by: Ophiuchus
5 Replies

10. Shell Programming and Scripting

Comparison of files

I have the requirement I have two files cat fileA something anythg nothing everythg cat fileB everythg anythg Now i shld use fileB and compare every line at fileA and get the output as something nothing (3 Replies)
Discussion started by: Priya Amaresh
3 Replies
getfilexsec(1M) 														   getfilexsec(1M)

NAME
getfilexsec - display security attributes of binary executable(s) SYNOPSIS
filename... DESCRIPTION
The command displays various extended security attributes associated with binary executable files. These attributes include retained priv- ileges, permitted privileges, and compartment and security attribute flags. See privileges(5) and exec(2) Options The command supports the following options: Displays the compartment name of the file(s). Displays security attribute flags. The only currently defined flag is the privilege start flag. Displays the minimum permitted privileges. Displays the maximum permitted privileges. Displays the minimum retained privileges. Displays the maximum retained privileges. If no options are specified, all extended security attributes of the binary file(s) are displayed. Operands supports the following operand: filename Binary executable file. All file names given as arguments must be binary executables. Files of other types (for example, script executables, text files, and so on) are not permitted. Security Restrictions The user invoking this command must be able to open the directory in which the binary executable files are present. RETURN VALUE
returns the following values: Successful completion. The attributes are displayed. An error occurs. An error can be caused by an invalid option or inadequate permissions to perform the operation. EXAMPLES
Example 1: Display the maximum permitted privileges and privilege-aware flag of binary executable file Sample output: /web/java: Flag: start_nil PermittedMaxPrivileges: CMPTREAD, CMPTWRITE SEE ALSO
setfilexsec(1M), exec(2), compartments(5), privileges(5). getfilexsec(1M)
All times are GMT -4. The time now is 07:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy