How to search specific object in binary file?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to search specific object in binary file?
# 1  
Old 02-14-2014
How to search specific object in binary file?

I have a very important question:

I have to find a table 'XXTO_AR_TABLE' in a folder present in server and in this folder these types files are present: .rdf, jar file, java class file etc. These are binary files.

I want to get name of these files where my table named 'XXTO_AR_TABLE' is present.

Expected Output: (approx)
-----------------------
Code:
XXTO_AR_TABLE  is present in  APTBRX.rdf
XXTO_AR_TABLE  is present in  APJORF.class

Please anyone help on this, it's very urgent for me.

Thanks,
Vikash

Moderator's Comments:
Mod Comment even for little data, we want to see code tags! thank you

Last edited by vbe; 02-14-2014 at 09:48 AM..
# 2  
Old 02-14-2014
You mean string, a table is a srtucture and most likely would be in memory or exist as a file or perhaps included in a binary. But you are looking for its name an so its a string...
Searching fo a string is achieved using grep
# 3  
Old 02-17-2014
I tried to search with "grep" command but it is only working with SQL files e.g. package_name.sql. If trying to search in .rdf or .class or any other binary file, output is not comming.
Do you have particular command for this ? please suggest or provide the excact command.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Specific file name search

Hello i am new with UNIX and needed help with my search. I need to find a file that starts with 'f' than has unknown number of numbers then has 'gr' and ends with large letters also unknown number and unknown extension. ex. f123456grKNI, f11223grKE Thank you up front :D (2 Replies)
Discussion started by: Nino
2 Replies

2. Programming

C program to read a binary file and search for a string?

Hi, I am not a C programmer. The only C exposure I have is reading and completing the exercises from the C (ANSI C ) Programming Language book:o At the moment, I am using the UNIX strings command to extract information for a binary file and grepping for a particular string and the value... (3 Replies)
Discussion started by: newbie_01
3 Replies

3. UNIX for Dummies Questions & Answers

Search for a specific String in a log file for a specific date range

Hi, I have log file which rolls out every second which is as this. HttpGenRequest - -<!--OXi dbPublish--> <created="2014-03-24 23:45:37" lastMsgId="" requestTime="0.0333"> <response request="getOutcomeDetails" code="114" message="Request found no matching data" debug="" provider="undefined"/>... (3 Replies)
Discussion started by: karthikprakash
3 Replies

4. Shell Programming and Scripting

Search specific name in a file and fetch specific entries

Hi all, I have 2 files, One file contain data like this FHIT CS CHRM1 PDE3A PDE3B HSP90AA1 PTK2 HTR1A ESR1 PARP1 PLA2G1B These names are mentioned in the second file(Please see attached second file) as (7 Replies)
Discussion started by: manigrover
7 Replies

5. Shell Programming and Scripting

Urgent request to consider:Search specific name in a file and fetch specific entries

Hi all, I have 2 files, One file contain data like this FHIT CS CHRM1 PDE3A PDE3B HSP90AA1 PTK2 HTR1A ESR1 PARP1 PLA2G1B These names are mentioned in the second file(Please see attached second file) as # Drug_Target_X_Gene_Name:(Where X can be any number (1-1000) (1 Reply)
Discussion started by: manigrover
1 Replies

6. UNIX for Dummies Questions & Answers

How to search directory for specific file?

I am new to Unix scripting and would like some help. Here is my scenario: 1) I have a text files that contains two fields: file name and retention period in months: File1 36 file2 24 File3 12 2) The directory I am searching contains sequential files. 3) I need to be able to take the file name... (10 Replies)
Discussion started by: Mustafa19804
10 Replies

7. Programming

Binary Search Tree Search problem

I am writing code for a binary search tree search and when I compile it i am getting strange errors such as, " /tmp/ccJ4X8Xu.o: In function `btree::btree()': project1.cpp:(.text+0x0): multiple definition of `btree::btree()' " What does that mean exactly? tree.h #ifndef TREE_H #define... (1 Reply)
Discussion started by: meredith1990
1 Replies

8. Shell Programming and Scripting

search a file for specific text

Hello everyone, I'm a newbie here. I'm working on a ksh script on Solaris 5.10 and have a question. I'm trying to search for a word line by line in a log file, and grab the text right after it inside quotes, and assign that to a variable. For example, each line in the log will look something... (6 Replies)
Discussion started by: Kristin_in_CO
6 Replies

9. UNIX for Dummies Questions & Answers

Search File for Specific Words

I have a file that contains the following: Mon Dec 3 15:52:57 PST 2o007: FAILED TO PROCESSED FILE 200712030790881200.TXT - exit code=107 Tue Dec 4 09:08:57 PST 2007: FAILED TO PROCESSED FILE 200712030790879200a.TXT - exit code=107 This file also has a lot more stuff since it is a log file.... (2 Replies)
Discussion started by: mevasquez
2 Replies

10. Programming

creating object files in a specific directory

hello, i have a makefile in which i am specifying the option for creating the object files of the source files. The option which i am using is this : gcc -c main.c first.c by default these object files are created in the same directory in which the makefile is present. what option... (1 Reply)
Discussion started by: svh
1 Replies
Login or Register to Ask a Question