When I compile my C++ project, many shared object files are created with extensions such as
.so .so.0 .so.7 .so.0.7
I need to add all those
I think you can accomplish it in two lines:
.so .so.[0-9]*