Skip to content

Instantly share code, notes, and snippets.

@jglick
Created February 22, 2023 13:23
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 jglick/9a3bce5eb63928f481d5b77253bafa22 to your computer and use it in GitHub Desktop.
Save jglick/9a3bce5eb63928f481d5b77253bafa22 to your computer and use it in GitHub Desktop.
Dump manifest of JAR(s) without line-wrapping
#!/bin/sh
for j in "$@"
do
unzip -p "$j" META-INF/MANIFEST.MF | perl -p -0777 -e 's/\r?\n //g'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment