Search code examples
javaunixjarterminalzip

Extract several of jar in one command


I have folders with lots (20) of jar files. Is there a way to extract all those jars in one command in the terminal instead doing it one by one? I'm using a MAC.


Solution

  • A simple solution.- Get all the jars and extract it

    find ./ -name "*.jar" -exec jar -xf {} \;