title: How to find the library type (.so or .a) in C++/UNIX
body: <p>Given a C++/UNIX library file (without extension), i need to determine the type of library whether it is a dynamic library (.so file) or a static library (.a file) based on its content (say grepping the content against a keyword)</p>
  
  <p>How do i do it in UNIX command line ?</p>