Skip to content

Instantly share code, notes, and snippets.

@gkhays
Created October 8, 2015 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gkhays/916adffbed5cd462795b to your computer and use it in GitHub Desktop.
Save gkhays/916adffbed5cd462795b to your computer and use it in GitHub Desktop.
List all the JAR files being used in a project or installation.
#!bin/bash
# Find all the JARs starting here and print them out.
find . -name *.jar -print > audit.txt
# Strip out the path and sort.
find . -name *.jar -exec basename {} \; | sort -u > audit-nopath.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment