how to extract the multiple folders inside jar
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 {} \;
精彩评论