I have txt file contains names of jar , I want to read this txt file and for each line I want to find and move jar with same name and version number appended (version number is subject to change) from a folder X to folder JarSequence. Text file is jar.txt which has -
- bbb
- aaa
- ccc
now for each line in txt file I want to copy jar in folder JarSequence so that folder JarSequence has -
- bbb-1.0.1.jar
- aaa-1.0.1.jar
- ccc-1.0.1.jar
If possible I also want to maintain same sequence in JarSequence folder as in text file.
Thanks for any help .