Is there any tool like Linux's strings command for java? I want to see only strings not all printable things.
2 Answers
For Windows:
Answered here: https://stackoverflow.com/a/10645087/1717300
Quote from that:
Someone already wrote a utility that does what you want:
http://technet.microsoft.com/en-us/sysinternals/bb897439.aspx
Did not readily find a straight out Linux tool for this, but that Question is about doing this in Python, and there's an answer for writing Python tool for the purpose, as well as bunch of linked questions.
Comments
strings is a lifesaver. But String.replaceAll() always worked with me,
Stringcould contain all printable things. What are you looking for specifically? Non-printable characters? (How would you be able to print those?)stringscommand, which can display strings from compiled Java class files? If so, please clarify the question a bit.