خرید بک لینک

I have the following file structure that comes out of my continuous integration tool:

plugins/acme-plugin/target/acme-plugin-1.0.0.jar
plugins/example-plugin/target/example-plugin-2.5.0.jar

but what I need is now to move them to another directory and to rename a subdirectory according to the version number. So it should look like this:

plugins/acme-plugin/1.0.0/acme-plugin-1.0.0.jar
plugins/example-plugin/2.5.0/example-plugin-2.5.0.jar

I know how to find all files recursively with find, but how do I match/grep the version number an replace it with the target part of the dir?

- - , .

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 13 اسفند 1394 ساعت: 16:08

صفحه بندی