Friday, January 9, 2015

Shared object(.so)

Is there any utility or command to find, all the file names within a .so file


Thanks & Regards
Sandeep
--
You received this message because you are subscribed to the Google Groups "Sadhiq Linux Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sadhiq-linux-group+unsubscribe@googlegroups.com.
To post to this group, send email to sadhiq-linux-group@googlegroups.com.
Visit this group at http://groups.google.com/group/sadhiq-linux-group.
For more options, visit https://groups.google.com/d/optout.
Reply | Reply to all | Forward | Print | Delete | Show original

Add star 

prasad

<prasad.gopale@gmail.com>
Wed, Dec 31, 2014 at 10:59 AM
Reply-To: sadhiq-linux-group@googlegroups.com
To: sadhiq-linux-group@googlegroups.com

On Wed, Dec 31, 2014 at 10:32 AM, Sandeep Mm <mm.sandeep86@gmail.com> wrote:
.so

find / -iname "*.so" -print

Best Regards,
Prasad Gopale
Save Green: Please do not print this email unless it is absolutely necessary.
Reply | Reply to all | Forward | Print | Delete | Show original

Add star 

Sandeep Mm

<mm.sandeep86@gmail.com>
Wed, Dec 31, 2014 at 12:03 PM
Reply-To: sadhiq-linux-group@googlegroups.com
To: sadhiq-linux-group@googlegroups.com
Hi prasad,

Thanks for your reply.

My requirement is not to find all the .so file

My requirement is to find the filenames within the .so file

Example:In DNS, libresolv.so contains the /etc/nsswitch.conf file entry

Add star 

sandeep patil

<sandep968@gmail.com>
Wed, Dec 31, 2014 at 1:26 PM
Reply-To: sadhiq-linux-group@googlegroups.com
To: sadhiq-linux-group@googlegroups.com
Hi,

you can use below command:


find / -type f -name '*.so' -exec grep -l "word" {} + 2>/dev/null
In place of word: you can put your file name or just write "conf" it will search the conf filenames in the all .so file
there are some other links:
http://www.cyberciti.biz/faq/howto-search-find-file-for-text-string/
http://stackoverflow.com/questions/16956810/finding-all-files-containing-a-text-string-on-linux
http://www.blackmoreops.com/2014/08/20/find-files-containing-specific-text/ ----search under particular directory

No comments:

Post a Comment