I have a directory structure like this
client/lib
a.jar
b-4.3.jar
c-1.2.jar
d-4.3.jar
e.jar
I need to copy some jars without version and some with version. The only information that i have is version number, and that is stored in a variable.
Problem is version number that i have in variable is 4.3.1 and version that jars have is just first two digits from the variable value (i.e. 4.3 in my case). I need all the jars that has starting two digits that my variable has and some of the jars without version. For e.g. from above directory structure i need:
b-4.3.jar
d-4.3.jar
e.jar
Can somebody please help?