LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   program for scanning libraries (https://www.linuxquestions.org/questions/linux-software-2/program-for-scanning-libraries-743862/)

kpachopoulos 07-30-2009 04:05 AM

program for scanning libraries
 
Hi all,
i'd like to scan a set of (C++ linux static) libraries for some specific type definitions/structures. I am trying to do that via a script- see post also, but my knowledge or rather the lack of it doesn't help a lot. So, i am also asking if there is a tool/program, that could help me out. A command-line one preferably, so that i could use it in a bash script maybe.

Thanks in advance.

weibullguy 07-30-2009 04:26 AM

You could use grep. Works in shell scripts too.

kpachopoulos 07-30-2009 04:29 AM

Unfortunately grep seems to work only for text files. My small search showed, that it's not the right tool for binary files. I'd be happy to be wrong by the way ;)

weibullguy 07-31-2009 04:51 PM

Depending on what you want from the output of grep, it will work with binary files. Take a look at the man page.


All times are GMT -5. The time now is 08:39 PM.