how to read the text file inside the jar without extracting jar.
If you mean to ask the command,
here it is..
Viewing the Contents of a JAR File
jar tf jar-file
and for getting any txt file , just grep it
jar tf jar-file | grep "yourfile.txt"
What u suggested - Jar command only give the table of contents, from this "grep" extract filename alone. But, I am asking what the content exactly present in file.
if there any command like cat to view the content of the file.
---------- Post updated at 02:44 PM ---------- Previous update was at 02:32 PM ----------
Hi all,
Got it finally...
unzip -p rt.jar META-INF/MANIFEST.MF which is working
Thanks
yes you are right.