开发者

how to extract the multiple folders inside jar

开发者 https://www.devze.com 2023-03-02 18:53 出处:网络
i have multiple folders. each folders having lot of jars. i want to extract all the jars in root directory with single 开发者_JAVA技巧command. please adviceyou can do this by command:

i have multiple folders. each folders having lot of jars. i want to extract all the jars in root directory with single 开发者_JAVA技巧command. please advice


you can do this by command:

 cp $(find /rootfolder/with/jars -name "*.jar") /folder/for/jars


find path -type f -name *.jar -exec unzip {} \;


The question is still a little unclear, but as I understand it, you want to find all the jars in multiple folders, and then extract them in place. That can be done in UNIX with

$ find /top/directory -name '*.jar' -exec jar xf {} \;
0

精彩评论

暂无评论...
验证码 换一张
取 消