I have a war file on a linux server.
I need to display the contents of a file in the war file. Not just display what is in the war file.
I can display the contents of the war file using this command:
jar -tvf file1.war
I need to display the contents of the manifest file in this war file.
I thought I could use the pipe to add the cat
command but it errors with:
No such file or directory
This is the command I tried: jar -tvf file1.war | cat META-INF/MANIFEST.MF
What command I use to view the contents of the manifest file in a war file?